Changeset - r8023:43acdde770c8
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-12-06 20:55:48
rubidium@openttd.org
(svn r11583) -Fix [FS#1484]: windows could get completely missing when one resized the window to something very small.
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/window.cpp
Show inline comments
 
@@ -2197,8 +2197,11 @@ void RelocateAllWindows(int neww, int ne
 
			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;
 
		}
 

	
0 comments (0 inline, 0 general)