diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-08-15 13:55:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-08-15 14:34:16 +0300 |
commit | 48a6997e2a0657d8b238101b84b688b37bc88875 (patch) | |
tree | 189b8cc55b5d51841260c0d07f49c4d68ebf3d9b /source | |
parent | 95a0144293b840bfbdcb6a41c1a3a26976961b9b (diff) |
Fix T64888: full-screen button overlaps side-bar
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/screen/area.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index 3cf39b67054..d0a3382ee50 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -874,10 +874,19 @@ static void fullscreen_azone_initialize(ScrArea *sa, ARegion *ar) az->ar = ar; az->alpha = 0.0f; - az->x2 = ar->winrct.xmax; - az->y2 = ar->winrct.ymax; + if (U.uiflag2 & USER_REGION_OVERLAP) { + rcti rect_visible; + ED_region_visible_rect(ar, &rect_visible); + az->x2 = ar->winrct.xmin + rect_visible.xmax; + az->y2 = ar->winrct.ymin + rect_visible.ymax; + } + else { + az->x2 = ar->winrct.xmax; + az->y2 = ar->winrct.ymax; + } az->x1 = az->x2 - AZONEFADEOUT; az->y1 = az->y2 - AZONEFADEOUT; + BLI_rcti_init(&az->rect, az->x1, az->x2, az->y1, az->y2); } |