+ plat_sdl_change_video_mode(0, 0, 1);
+ }
+ }
+ else if (event->type == SDL_ACTIVEEVENT) {
+ if (event->active.gain && !was_active) {
+ if (plat_sdl_overlay != NULL) {
+ SDL_Rect dstrect = { 0, 0, plat_sdl_screen->w, plat_sdl_screen->h };
+ SDL_DisplayYUVOverlay(plat_sdl_overlay, &dstrect);
+ }
+ else if (plat_sdl_gl_active) {
+ gl_flip(NULL, 0, 0);
+ }
+ // else SDL takes care of it