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
This commit is contained in:
parent
e594f23a27
commit
a311fa96aa
Notes:
blender-bot
2023-02-13 19:38:46 +01:00
Referenced by issue #85706, Lack of workspace font size update when the window came from a monitor with a different scale Referenced by issue #85476, Multi-monitor window scale problem
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue