Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_window.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| // win->lmbut = 0; /* Keeps hanging when mouse-pressed while other window opened. */ | // win->lmbut = 0; /* Keeps hanging when mouse-pressed while other window opened. */ | ||||
| wm_window_clear_drawable(wm); | wm_window_clear_drawable(wm); | ||||
| if (G.debug & G_DEBUG_EVENTS) { | if (G.debug & G_DEBUG_EVENTS) { | ||||
| printf("%s: set drawable %d\n", __func__, win->winid); | printf("%s: set drawable %d\n", __func__, win->winid); | ||||
| } | } | ||||
| wm_window_set_drawable(wm, win, true); | wm_window_set_drawable(wm, win, true); | ||||
| /* this can change per window */ | |||||
| WM_window_set_dpi(win); | |||||
| } | } | ||||
| } | } | ||||
| void wm_window_reset_drawable(void) | void wm_window_reset_drawable(void) | ||||
| { | { | ||||
| BLI_assert(BLI_thread_is_main()); | BLI_assert(BLI_thread_is_main()); | ||||
| BLI_assert(GPU_framebuffer_active_get() == GPU_framebuffer_back_get()); | BLI_assert(GPU_framebuffer_active_get() == GPU_framebuffer_back_get()); | ||||
| wmWindowManager *wm = G_MAIN->wm.first; | wmWindowManager *wm = G_MAIN->wm.first; | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||