diff options
author | Ton Roosendaal <ton@blender.org> | 2012-12-15 13:45:34 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2012-12-15 13:45:34 +0400 |
commit | 35dd893c368548b5d9d7bb56a1b9db07c71165d2 (patch) | |
tree | 23b7110625520b64e9e247e498704fa84629ae1c /source/blender/editors/screen/area.c | |
parent | 81d240c8c86d0741e26eaa3f8b4b4c9bfac38f1a (diff) |
Bugfix, irc collection:
With larger header sizes (via DPI setting), splitting an area horizontally (using
left-bottom corner widget, move up) stopped immediate after split, not allowing
to drag it to a position.
Culprit was code to check minimum header size, and area operator using the same
flags. Now ScrVert has two flags - one for internal use, one for the tools to set.
Diffstat (limited to 'source/blender/editors/screen/area.c')
-rw-r--r-- | source/blender/editors/screen/area.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index 62ddd10ee7c..a73c2d818d0 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -1139,7 +1139,7 @@ static void region_rect_recursive(wmWindow *win, ScrArea *sa, ARegion *ar, rcti static void area_calc_totrct(ScrArea *sa, int sizex, int sizey) { - short rt = U.pixelsize > 1 ? 1 : 0; + short rt = U.pixelsize > 1.0f ? 1 : 0; if (sa->v1->vec.x > 0) sa->totrct.xmin = sa->v1->vec.x + 1 + rt; else sa->totrct.xmin = sa->v1->vec.x; |