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
diff options
context:
space:
mode:
authorJulian Eisel <eiseljulian@gmail.com>2016-03-04 19:58:35 +0300
committerJulian Eisel <eiseljulian@gmail.com>2016-03-04 20:13:01 +0300
commitfe7bab13439fe6f0181f6661fbf7bb7ae18f5310 (patch)
treea7dc136840a96365445f6897897c1bf2f59b38a9 /source/blender/windowmanager/intern
parenta3de3a03c879ce03174fe9ff096a67805669a4ba (diff)
Fix changing virtual pixelsize having no affect if only main window is open
Changing virtual pixelsize only had an affect when a second window was open. (Was also possible to trigger update by opening another window.) Steps to reproduce: * Change any editor into user preferences *in main window* * Change virtual pixel size -> nothing happens
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r--source/blender/windowmanager/intern/wm_window.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c
index 688be21cdd0..572fbac080d 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -831,11 +831,11 @@ void wm_window_make_drawable(wmWindowManager *wm, wmWindow *win)
printf("%s: set drawable %d\n", __func__, win->winid);
}
GHOST_ActivateWindowDrawingContext(win->ghostwin);
-
- /* this can change per window */
- U.pixelsize = wm_window_pixelsize(win);
- BKE_userdef_state();
}
+
+ /* this can change per window */
+ U.pixelsize = wm_window_pixelsize(win);
+ BKE_userdef_state();
}
/* called by ghost, here we handle events for windows themselves or send to event system */