diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-03-04 22:30:51 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-03-04 22:31:40 +0300 |
commit | f33e44151ebc454fef0338b76120dac67a106722 (patch) | |
tree | e7ee4f1e36ec85a48a479de179a242677f74bf99 /source/blender/windowmanager | |
parent | fe7bab13439fe6f0181f6661fbf7bb7ae18f5310 (diff) |
Revert "Fix changing virtual pixelsize having no affect if only main window is open"
This reverts commit fe7bab13439fe6f0181f6661fbf7bb7ae18f5310.
Setting correct context is important,
but this is setting DPI and widget unit on *every* mouse move.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_window.c | 8 |
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 572fbac080d..688be21cdd0 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 */ |