From 2a6b1db9add9c9f544db5828b9d01b350e881de6 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Mon, 13 Apr 2009 14:39:43 +0000 Subject: 2.5 Bugfix: loading 2.5 .blend files in different sized windows didn't correct the screen size for it yet. --- source/blender/windowmanager/intern/wm_files.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source') diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index 30a941bb991..066b1321947 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -598,6 +598,12 @@ static void wm_window_match_do(bContext *C, ListBase *oldwmlist) win->eventstate= oldwin->eventstate; oldwin->eventstate= NULL; + + /* ensure proper screen rescaling */ + win->sizex= oldwin->sizex; + win->sizey= oldwin->sizey; + win->posx= oldwin->posx; + win->posy= oldwin->posy; } } } -- cgit v1.2.3