diff options
Diffstat (limited to 'source/blender/windowmanager/intern/wm_subwindow.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_subwindow.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/windowmanager/intern/wm_subwindow.c b/source/blender/windowmanager/intern/wm_subwindow.c index 255d22191e2..54074ec8f07 100644 --- a/source/blender/windowmanager/intern/wm_subwindow.c +++ b/source/blender/windowmanager/intern/wm_subwindow.c @@ -209,10 +209,10 @@ void wm_subwindow_position(wmWindow *win, int swinid, rcti *winrct) * fixed it). - zr (2001!) */ - if (swin->winrct.xmax >= win->sizex) - swin->winrct.xmax= win->sizex-1; - if (swin->winrct.ymax >= win->sizey) - swin->winrct.ymax= win->sizey-1; + if (swin->winrct.xmax > win->sizex) + swin->winrct.xmax= win->sizex; + if (swin->winrct.ymax > win->sizey) + swin->winrct.ymax= win->sizey; /* extra service */ wmSubWindowSet(win, swinid); |