Changeset - r371:d1e9c177243f
[Not reviewed]
master
0 1 0
tron - 20 years ago 2004-11-13 11:08:50
tron@openttd.org
(svn r559) Minor simplification
1 file changed with 2 insertions and 4 deletions:
0 comments (0 inline, 0 general)
window.c
Show inline comments
 
@@ -806,10 +806,8 @@ bool HandleWindowDragging()
 
				int v_bottom = v->top + v->height;
 
				int v_right = v->left + v->width;
 
				if (ny + t->top >= v->top && ny + t->top < v_bottom) {
 
					if (v->left < 13 && nx + t->left < v->left) {
 
						ny = v_bottom;
 
					} else if (v_right > _screen.width - 13 &&
 
							nx + t->right > v_right) {
 
					if ((v->left < 13 && nx + t->left < v->left) ||
 
							(v_right > _screen.width - 13 && nx + t->right > v_right)) {
 
						ny = v_bottom;
 
					} else {
 
						if (nx + t->left > v->left - 13 &&
0 comments (0 inline, 0 general)