diff options
author | Severin <eiseljulian@gmail.com> | 2018-06-30 01:42:19 +0300 |
---|---|---|
committer | Severin <eiseljulian@gmail.com> | 2018-06-30 01:42:19 +0300 |
commit | a55b00b53baf2e202b88cbea0f61a232ff9843d3 (patch) | |
tree | 60ec0e0b08e4aeaf7afeab08a5d281b97c2150ba /source/blender/editors/screen/screen_ops.c | |
parent | 48ad67ef8201f8fcd5efdf748c5fea86e2c61d7d (diff) |
Fix a number of small errors in area coordinate handling
For example collapsing the lower part of the topbar with 2x interface scale
would hide the top-bar header region. There were also more asserts when changing
window size and moving area edges afterwards (same assert as in T55298).
Fixes are similar to e626998a262ebe4f.
With all the recent fixes I've done, area geometry handling should be stable
again. Let's hope I'm right :)
Diffstat (limited to 'source/blender/editors/screen/screen_ops.c')
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index e4de87e0b46..9c27bda5ec8 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -1235,8 +1235,8 @@ static void area_move_set_limits( if (use_bigger_smaller_snap != NULL) { *use_bigger_smaller_snap = false; for (ScrArea *area = win->global_areas.areabase.first; area; area = area->next) { - const int size_min = round_fl_to_int(area->global->size_min * UI_DPI_FAC); - const int size_max = round_fl_to_int(area->global->size_max * UI_DPI_FAC); + const int size_min = ED_area_global_min_size_y(area) - 1; + const int size_max = ED_area_global_max_size_y(area) - 1; /* logic here is only tested for lower edge :) */ /* left edge */ |