| | |
| | | } |
| | | } |
| | | |
| | | static void WIN_SuspendScreenSaver(_THIS) |
| | | { |
| | | if (_this->suspend_screensaver) { |
| | | SetThreadExecutionState(ES_CONTINUOUS | ES_DISPLAY_REQUIRED); |
| | | } else { |
| | | SetThreadExecutionState(ES_CONTINUOUS); |
| | | } |
| | | } |
| | | |
| | | |
| | | /* Windows driver bootstrap functions */ |
| | | |
| | |
| | | device->GetDisplayModes = WIN_GetDisplayModes; |
| | | device->SetDisplayMode = WIN_SetDisplayMode; |
| | | device->PumpEvents = WIN_PumpEvents; |
| | | device->SuspendScreenSaver = WIN_SuspendScreenSaver; |
| | | |
| | | device->CreateSDLWindow = WIN_CreateWindow; |
| | | device->CreateSDLWindowFrom = WIN_CreateWindowFrom; |
| | |
| | | device->DestroyWindowFramebuffer = WIN_DestroyWindowFramebuffer; |
| | | device->OnWindowEnter = WIN_OnWindowEnter; |
| | | device->SetWindowHitTest = WIN_SetWindowHitTest; |
| | | device->AcceptDragAndDrop = WIN_AcceptDragAndDrop; |
| | | |
| | | device->shape_driver.CreateShaper = Win32_CreateShaper; |
| | | device->shape_driver.SetWindowShape = Win32_SetWindowShape; |