diff -r 8f231ee779cb -r 4b42fb40e6d2 src/viewport.cpp --- a/src/viewport.cpp Tue Feb 13 13:00:37 2007 +0000 +++ b/src/viewport.cpp Tue Feb 13 18:07:36 2007 +0000 @@ -1332,17 +1332,17 @@ ViewportDrawChk(vp, left, top, right, bottom); } -void DrawWindowViewport(const Window *w) +void Window::DrawViewport() const { DrawPixelInfo *dpi = _cur_dpi; - dpi->left += w->left; - dpi->top += w->top; - - ViewportDraw(w->viewport, dpi->left, dpi->top, dpi->left + dpi->width, dpi->top + dpi->height); - - dpi->left -= w->left; - dpi->top -= w->top; + dpi->left += left; + dpi->top += top; + + ViewportDraw(viewport, dpi->left, dpi->top, dpi->left + dpi->width, dpi->top + dpi->height); + + dpi->left -= left; + dpi->top -= top; } void UpdateViewportPosition(Window *w)