2.5
authorTon Roosendaal <ton@blender.org>
Fri, 24 Jul 2009 13:17:40 +0000 (13:17 +0000)
committerTon Roosendaal <ton@blender.org>
Fri, 24 Jul 2009 13:17:40 +0000 (13:17 +0000)
Temp window now clips correctly on left side.
Also increased top offset for OSX to show window header.

source/blender/windowmanager/intern/wm_window.c

index 5816fbb0667114172fef3390356b8e8c937e36b5..31e6de2527b8999877121bf4ab110a75d2a5ea55 100644 (file)
@@ -90,9 +90,19 @@ static void wm_window_check_position(rcti *rect)
        wm_get_screensize(&width, &height);
        
 #ifdef __APPLE__
-       height -= 22;
+       height -= 42;
 #endif
        
+       if(rect->xmin < 0) {
+               d= rect->xmin;
+               rect->xmax -= d;
+               rect->xmin -= d;
+       }
+       if(rect->ymin < 0) {
+               d= rect->ymin;
+               rect->ymax -= d;
+               rect->ymin -= d;
+       }
        if(rect->xmax > width) {
                d= rect->xmax - width;
                rect->xmax -= d;