Fix T51889: new file or load factory settings results in broken UI.
[blender.git] / source / blender / editors / screen / screen_edit.c
index 18f02aff482aa30969cc684d8bb66d1bce5c6506..f469686b0b220a4550eb863724c85562314dc2bc 100644 (file)
@@ -1228,6 +1228,7 @@ void ED_screen_refresh(wmWindowManager *wm, wmWindow *win)
                winrct.ymax = winsize_y - 1;
                
                /* header size depends on DPI, let's verify */
+               WM_window_set_dpi(win);
                screen_refresh_headersizes();
                
                screen_test_scale(win->screen, winsize_x, winsize_y);