2.5
authorTon Roosendaal <ton@blender.org>
Mon, 13 Apr 2009 14:39:43 +0000 (14:39 +0000)
committerTon Roosendaal <ton@blender.org>
Mon, 13 Apr 2009 14:39:43 +0000 (14:39 +0000)
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

index 30a941bb9918e10ae55c2ac040d3389920a974db..066b132194725eb7ceaaa353ec9782f419a24f0d 100644 (file)
@@ -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;
                                        }
                                }
                        }