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:
authorJesse Y <deadpin>2021-01-12 14:00:58 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-01-13 14:12:36 +0300
commitdc170a6d67826ee4201384f90065141ef4fae96e (patch)
treee223095778f2b584c487381658bd97a64e04e118 /source/blender/editors/screen
parent8964c02348f61c2ce8046c09478180ddfbd0f8e5 (diff)
Fix: popout windows are sized incorrectly on high DPI screens
There should be a conversion to native pixel size as expected by GHOST at the window manager level, the dimensions at screen level do not need a conversion. Differential Revision: https://developer.blender.org/D9976
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r--source/blender/editors/screen/screen_ops.c4
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 bdb2ffb8610..ca1c75be0a1 100644
--- a/source/blender/editors/screen/screen_ops.c
+++ b/source/blender/editors/screen/screen_ops.c
@@ -1354,8 +1354,8 @@ static int area_dupli_invoke(bContext *C, wmOperator *op, const wmEvent *event)
/* adds window to WM */
rcti rect = area->totrct;
BLI_rcti_translate(&rect, win->posx, win->posy);
- rect.xmax = rect.xmin + BLI_rcti_size_x(&rect) / U.pixelsize;
- rect.ymax = rect.ymin + BLI_rcti_size_y(&rect) / U.pixelsize;
+ rect.xmax = rect.xmin + BLI_rcti_size_x(&rect);
+ rect.ymax = rect.ymin + BLI_rcti_size_y(&rect);
wmWindow *newwin = WM_window_open(C, &rect);
if (newwin == NULL) {