[Bf-blender-cvs] [a311fa96aa4] master: Fix T85706: wm_window_make_drawable update DPI
Harley Acheson
noreply at git.blender.org
Wed Jan 12 19:38:51 CET 2022
Commit: a311fa96aa428b611bc07c4d7f8a002dd3e6b462
Author: Harley Acheson
Date: Wed Jan 12 10:37:52 2022 -0800
Branches: master
https://developer.blender.org/rBa311fa96aa428b611bc07c4d7f8a002dd3e6b462
Fix T85706: wm_window_make_drawable update DPI
When drawing windows on monitors that differ in DPI, we can sometimes
have UI elements draw at an incorrect scale. This patch just ensures
that `wm_window_make_drawable` always updates DPI.
See D10483 for more details.
Differential Revision: https://developer.blender.org/D10483
Reviewed by Brecht Van Lommel
===================================================================
M source/blender/windowmanager/intern/wm_window.c
===================================================================
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c
index 29c9f53f735..a1854a8ed86 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -1033,7 +1033,9 @@ void wm_window_make_drawable(wmWindowManager *wm, wmWindow *win)
}
wm_window_set_drawable(wm, win, true);
+ }
+ if (win->ghostwin) {
/* this can change per window */
WM_window_set_dpi(win);
}
More information about the Bf-blender-cvs
mailing list