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
path: root/source
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-04-18 20:28:36 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-04-18 20:28:36 +0400
commitfb2b3155f72d3bc6d2025d332cb843befea78d75 (patch)
tree40fceee7b871b916a14f527822d073f08e2041eb /source
parent8d756ef9145806603568b89cf902825ad925de07 (diff)
Fix "duplicate area into new window" making the window too big with high DPI / retina.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/screen/screen_ops.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c
index 4fe75944b74..22dff8cd662 100644
--- a/source/blender/editors/screen/screen_ops.c
+++ b/source/blender/editors/screen/screen_ops.c
@@ -906,6 +906,9 @@ static int area_dupli_invoke(bContext *C, wmOperator *op, const wmEvent *event)
/* adds window to WM */
rect = sa->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;
+
newwin = WM_window_open(C, &rect);
/* allocs new screen and adds to newly created window, using window size */