src/window.cpp
changeset 6987 b0f13039bda2
parent 6977 67b989528f3d
child 6988 76eba6a9cc6f
equal deleted inserted replaced
6986:168d3add1f13 6987:b0f13039bda2
   233 
   233 
   234 		if (right > v->left &&
   234 		if (right > v->left &&
   235 				bottom > v->top &&
   235 				bottom > v->top &&
   236 				left < v->left + v->width &&
   236 				left < v->left + v->width &&
   237 				top < v->top + v->height) {
   237 				top < v->top + v->height) {
   238 			if (left < (x=v->left)) {
   238 			if (left < (x = v->left)) {
   239 				DrawOverlappedWindow(wz, left, top, x, bottom);
   239 				DrawOverlappedWindow(wz, left, top, x, bottom);
   240 				DrawOverlappedWindow(wz, x, top, right, bottom);
   240 				DrawOverlappedWindow(wz, x, top, right, bottom);
   241 				return;
   241 				return;
   242 			}
   242 			}
   243 
   243 
   244 			if (right > (x=v->left + v->width)) {
   244 			if (right > (x = v->left + v->width)) {
   245 				DrawOverlappedWindow(wz, left, top, x, bottom);
   245 				DrawOverlappedWindow(wz, left, top, x, bottom);
   246 				DrawOverlappedWindow(wz, x, top, right, bottom);
   246 				DrawOverlappedWindow(wz, x, top, right, bottom);
   247 				return;
   247 				return;
   248 			}
   248 			}
   249 
   249 
   250 			if (top < (x=v->top)) {
   250 			if (top < (x = v->top)) {
   251 				DrawOverlappedWindow(wz, left, top, right, x);
   251 				DrawOverlappedWindow(wz, left, top, right, x);
   252 				DrawOverlappedWindow(wz, left, x, right, bottom);
   252 				DrawOverlappedWindow(wz, left, x, right, bottom);
   253 				return;
   253 				return;
   254 			}
   254 			}
   255 
   255 
   256 			if (bottom > (x=v->top + v->height)) {
   256 			if (bottom > (x = v->top + v->height)) {
   257 				DrawOverlappedWindow(wz, left, top, right, x);
   257 				DrawOverlappedWindow(wz, left, top, right, x);
   258 				DrawOverlappedWindow(wz, left, x, right, bottom);
   258 				DrawOverlappedWindow(wz, left, x, right, bottom);
   259 				return;
   259 				return;
   260 			}
   260 			}
   261 
   261