diff options
author | Ton Roosendaal <ton@blender.org> | 2009-03-25 19:58:42 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-03-25 19:58:42 +0300 |
commit | 2e48c4059acf7405c6beb366df63ae563802e0ff (patch) | |
tree | 439c95e5d584d7fc6e9486bf5bd83c44d5bc3cce /source/blender/windowmanager/intern/wm_subwindow.c | |
parent | a26a3f423fd6503dc2fbcd5f105c766ac3288515 (diff) |
2.5
WIP commit for new system to draw widgets and use themes or styles.
Not really interesting stuff to see in code now, the current
structure will change quite a lot, this to make it hook up well
to the existing system.
What works quite well is a new full opengl vector method to draw
scalable and pixel-aligned anti-aliased buttons.
http://download.blender.org/institute/rt3.jpg
http://download.blender.org/institute/rt4.jpg
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); |