diff options
author | rubidium <rubidium@openttd.org> | 2008-05-17 12:48:06 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-17 12:48:06 +0000 |
commit | 8b5421290027ab67cba25225111e3561ddd7af07 (patch) | |
tree | 95ff2c47f7b8b827b734ad75a798bd9257a80067 /src/viewport.cpp | |
parent | d8154e00ac8b0df7ad0ac94c90a393aa5096e573 (diff) | |
download | openttd-8b5421290027ab67cba25225111e3561ddd7af07.tar.xz |
(svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming.
Diffstat (limited to 'src/viewport.cpp')
-rw-r--r-- | src/viewport.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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) |