From fb2b3155f72d3bc6d2025d332cb843befea78d75 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 18 Apr 2013 16:28:36 +0000 Subject: [PATCH] Fix "duplicate area into new window" making the window too big with high DPI / retina. --- source/blender/editors/screen/screen_ops.c | 3 +++ 1 file changed, 3 insertions(+) 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 */