DIsable screensaver blocking via SDL in Editor

This commit is contained in:
Wojtek Figat
2026-02-20 23:50:13 +01:00
parent 6fd58c418e
commit 366a5162b7

View File

@@ -102,6 +102,9 @@ bool SDLPlatform::Init()
SDL_SetHint(SDL_HINT_WINDOWS_RAW_KEYBOARD, "1");
SDL_SetHint(SDL_HINT_VIDEO_WAYLAND_SCALE_TO_DISPLAY, "1");
#if USE_EDITOR
SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1"); // Allow screensaver in Editor when idle
#endif
//if (InitInternal())
// return true;