diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2020-01-14 21:04:27 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2020-01-14 21:08:51 +0300 |
commit | c167e8ba18d5457135dce8d654fa8eda30c20786 (patch) | |
tree | 3ddedd0134ba47ecd1b3f58f9f2f440294b24196 /source/blender/windowmanager/intern/wm_window.c | |
parent | e4bf08a363d98bf2bd3012349b314570e6e86dba (diff) |
Cleanup: Use new BLI_rct utilities to ensure valid rectangles
Technically this does a slight change to the check in wm_window.c: The
assert now also allows zero width/height rectangles.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_window.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c index a711b35e2c9..e7b6d65a3f9 100644 --- a/source/blender/windowmanager/intern/wm_window.c +++ b/source/blender/windowmanager/intern/wm_window.c @@ -2191,8 +2191,8 @@ void WM_window_screen_rect_calc(const wmWindow *win, rcti *r_rect) } } - BLI_assert(screen_rect.xmin < screen_rect.xmax); - BLI_assert(screen_rect.ymin < screen_rect.ymax); + BLI_assert(BLI_rcti_is_valid(&screen_rect)); + *r_rect = screen_rect; } |