diff options
author | Ton Roosendaal <ton@blender.org> | 2009-07-24 17:17:40 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-07-24 17:17:40 +0400 |
commit | e0c64de2971836bcbbb8da7bc7181029e4872901 (patch) | |
tree | 6dcc41ad343821e4318c23faf2070841e13e986f /source/blender/windowmanager | |
parent | fbad147b7624cb65399bbea09068e8871e5fb227 (diff) |
2.5
Temp window now clips correctly on left side.
Also increased top offset for OSX to show window header.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_window.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c index 5816fbb0667..31e6de2527b 100644 --- a/source/blender/windowmanager/intern/wm_window.c +++ b/source/blender/windowmanager/intern/wm_window.c @@ -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; |