diff options
author | rubidium <rubidium@openttd.org> | 2008-04-19 13:17:19 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-19 13:17:19 +0000 |
commit | 24b5c910398a06f4bacb54338399fc3b413cdee7 (patch) | |
tree | 348fbfb9f47ee42508b8c42686b7eeb304b7f0ab /src/smallmap_gui.cpp | |
parent | 1dcf912f0693ec90ecaa1b0302d92408d9f9c2fe (diff) | |
download | openttd-24b5c910398a06f4bacb54338399fc3b413cdee7.tar.xz |
(svn r12789) -Codechange: rename AssignWindowViewport to InitializeWindowViewport because the viewport is now part of the window struct. Patch by Alberth.
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r-- | src/smallmap_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index 6430c7798..93086d1ff 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -1110,7 +1110,7 @@ static void ExtraViewPortWndProc(Window *w, WindowEvent *e) switch (e->event) { case WE_CREATE: // Disable zoom in button /* New viewport start at (zero,zero) */ - AssignWindowViewport(w, 3, 17, w->widget[4].right - w->widget[4].left - 1, w->widget[4].bottom - w->widget[4].top - 1, 0, ZOOM_LVL_VIEWPORT); + InitializeWindowViewport(w, 3, 17, w->widget[4].right - w->widget[4].left - 1, w->widget[4].bottom - w->widget[4].top - 1, 0, ZOOM_LVL_VIEWPORT); w->DisableWidget(5); break; |