diff options
author | frosch <frosch@openttd.org> | 2013-10-19 15:28:54 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-10-19 15:28:54 +0000 |
commit | c08259fe9266e41aa5ce0bc89ad49f113c436b53 (patch) | |
tree | d0bf9eb7231681e2ef59f98663625913c87799f1 /src | |
parent | 338d9861bc7800744f47e72de1b6a659540ed3b1 (diff) | |
download | openttd-c08259fe9266e41aa5ce0bc89ad49f113c436b53.tar.xz |
(svn r25884) -Fix: Resizing the window did not properly resize the viewport window, resulting in the link graph glitching.
Diffstat (limited to 'src')
-rw-r--r-- | src/window.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/window.cpp b/src/window.cpp index ad97ddf7c..81738aec3 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -3378,19 +3378,10 @@ void RelocateAllWindows(int neww, int newh) FOR_ALL_WINDOWS_FROM_BACK(w) { int left, top; - - if (w->window_class == WC_MAIN_WINDOW) { - ViewPort *vp = w->viewport; - vp->width = w->width = neww; - vp->height = w->height = newh; - vp->virtual_width = ScaleByZoom(neww, vp->zoom); - vp->virtual_height = ScaleByZoom(newh, vp->zoom); - continue; // don't modify top,left - } - /* XXX - this probably needs something more sane. For example specifying * in a 'backup'-desc that the window should always be centered. */ switch (w->window_class) { + case WC_MAIN_WINDOW: case WC_BOOTSTRAP: ResizeWindow(w, neww, newh); continue; |