mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r11583) -Fix [FS#1484]: windows could get completely missing when one resized the window to something very small.
This commit is contained in:
parent
57fc61009e
commit
39b1a8302b
@ -2197,8 +2197,11 @@ void RelocateAllWindows(int neww, int newh)
|
||||
default:
|
||||
left = w->left;
|
||||
if (left + (w->width >> 1) >= neww) left = neww - w->width;
|
||||
if (left < 0) left = 0;
|
||||
|
||||
top = w->top;
|
||||
if (top + (w->height >> 1) >= newh) top = newh - w->height;
|
||||
if (top < 0) top = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user