Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_window.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c
index 57612964295..fe6272686bc 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -2167,21 +2167,9 @@ void WM_window_screen_rect_calc(const wmWindow *win, rcti *r_rect)
switch (global_area->global->align) {
case GLOBAL_AREA_ALIGN_TOP:
- if ((screen_rect.ymax - height) > window_rect.ymin) {
- height += U.pixelsize;
- }
- if (screen_rect.ymax < (window_rect.ymax - 1)) {
- height += U.pixelsize;
- }
screen_rect.ymax -= height;
break;
case GLOBAL_AREA_ALIGN_BOTTOM:
- if (screen_rect.ymin > window_rect.ymin) {
- height += U.pixelsize;
- }
- if ((screen_rect.ymin + height) < (window_rect.ymax - 1)) {
- height += U.pixelsize;
- }
screen_rect.ymin += height;
break;
default: