From a89b5721a8bff2a601161a1dc456f588c065b0eb Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 17 May 2008 12:48:06 +0000 Subject: (svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming. --- src/viewport.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/viewport.cpp') diff --git a/src/viewport.cpp b/src/viewport.cpp index f090a7565..6cc15e30c 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -1536,17 +1536,17 @@ static inline void ViewportDraw(const ViewPort *vp, int left, int top, int right 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; + dpi->left += this->left; + dpi->top += this->top; - ViewportDraw(w->viewport, dpi->left, dpi->top, dpi->left + dpi->width, dpi->top + dpi->height); + ViewportDraw(this->viewport, dpi->left, dpi->top, dpi->left + dpi->width, dpi->top + dpi->height); - dpi->left -= w->left; - dpi->top -= w->top; + dpi->left -= this->left; + dpi->top -= this->top; } static inline void ClampViewportToMap(const ViewPort *vp, int &x, int &y) -- cgit v1.2.3-54-g00ecf