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:
authorTon Roosendaal <ton@blender.org>2009-04-13 18:39:43 +0400
committerTon Roosendaal <ton@blender.org>2009-04-13 18:39:43 +0400
commit2a6b1db9add9c9f544db5828b9d01b350e881de6 (patch)
tree6884da60feba28140bb09d4527f094eee8c19095 /source
parentbf2ccf04a7e39611b0839039daf8728fd69be750 (diff)
2.5
Bugfix: loading 2.5 .blend files in different sized windows didn't correct the screen size for it yet.
Diffstat (limited to 'source')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c6
1 files changed, 6 insertions, 0 deletions
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;
}
}
}