diff --git a/examples/PlatformIO_SDL/src/sdl_main.cpp b/examples/PlatformIO_SDL/src/sdl_main.cpp index 87abf61b..7137e416 100644 --- a/examples/PlatformIO_SDL/src/sdl_main.cpp +++ b/examples/PlatformIO_SDL/src/sdl_main.cpp @@ -17,6 +17,9 @@ int user_func(bool* running) int main(int, char**) { +#if defined(__APPLE__) + SDL_SetHint(SDL_HINT_MAC_BACKGROUND_APP, "0"); +#endif // The second argument is effective for step execution with breakpoints. // You can specify the time in milliseconds to perform slow execution that ensures screen updates. return lgfx::Panel_sdl::main(user_func, 128);