Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_draw.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| CTX_wm_window_set(C, win); | CTX_wm_window_set(C, win); | ||||
| if (wm_draw_update_test_window(bmain, C, win)) { | if (wm_draw_update_test_window(bmain, C, win)) { | ||||
| bScreen *screen = WM_window_get_active_screen(win); | bScreen *screen = WM_window_get_active_screen(win); | ||||
| /* sets context window+screen */ | /* sets context window+screen */ | ||||
| wm_window_make_drawable(wm, win); | wm_window_make_drawable(wm, win); | ||||
| /* This can change per window. */ | |||||
| if (win->ghostwin) { | |||||
| WM_window_set_dpi(win); | |||||
| } | |||||
| /* notifiers for screen redraw */ | /* notifiers for screen redraw */ | ||||
| ED_screen_ensure_updated(wm, win, screen); | ED_screen_ensure_updated(wm, win, screen); | ||||
| wm_draw_window(C, win); | wm_draw_window(C, win); | ||||
| wm_draw_update_clear_window(C, win); | wm_draw_update_clear_window(C, win); | ||||
| wm_window_swap_buffers(win); | wm_window_swap_buffers(win); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines | |||||