Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_window.c
| Context not available. | |||||
| } | } | ||||
| } | } | ||||
| void WM_window_set_tablet_api(wmWindow *win) | |||||
| { | |||||
| int wintabEnabled = U.uiflag2 & USER_DISABLE_WINTAB ? 0 : 1; | |||||
| int nativeEnabled = U.uiflag2 & USER_DISABLE_NATIVE_TABLET_API ? 0 : 1; | |||||
| GHOST_EnableTabletAPI(win->ghostwin, nativeEnabled, wintabEnabled); | |||||
| } | |||||
| void WM_window_set_dpi(wmWindow *win) | void WM_window_set_dpi(wmWindow *win) | ||||
| { | { | ||||
| float auto_dpi = GHOST_GetDPIHint(win->ghostwin); | float auto_dpi = GHOST_GetDPIHint(win->ghostwin); | ||||
| Context not available. | |||||
| wm_event_add(win, &event); | wm_event_add(win, &event); | ||||
| WM_window_set_tablet_api(win); | |||||
| break; | break; | ||||
| } | } | ||||
| case GHOST_kEventWindowClose: | case GHOST_kEventWindowClose: | ||||
| Context not available. | |||||