diff src/video/fbcon/SDL_fbevents.c @ 1781:d8030f368b84

Get updates to the shadow surface while switched away
author Sam Lantinga <slouken@libsdl.org>
date Mon, 08 May 2006 05:36:45 +0000
parents 7a36f01acf71
children 15ae67aa6b4b
line wrap: on
line diff
--- a/src/video/fbcon/SDL_fbevents.c	Mon May 08 05:33:02 2006 +0000
+++ b/src/video/fbcon/SDL_fbevents.c	Mon May 08 05:36:45 2006 +0000
@@ -953,6 +953,11 @@
 		screen_contents = NULL;
 	}
 
+	/* Get updates to the shadow surface while switched away */
+	if ( SDL_ShadowSurface ) {
+		SDL_UpdateRect(SDL_ShadowSurface, 0, 0, 0, 0);
+	}
+
 	SDL_PrivateAppActive(1, (SDL_APPACTIVE|SDL_APPINPUTFOCUS|SDL_APPMOUSEFOCUS));
 }
 static void switch_vt(_THIS, unsigned short which)