From b6c6736b677790ec93dbdac65800ad9754a75189 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 8 May 2006 05:36:45 +0000 Subject: [PATCH] Get updates to the shadow surface while switched away --- src/video/fbcon/SDL_fbevents.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/video/fbcon/SDL_fbevents.c b/src/video/fbcon/SDL_fbevents.c index 02a4854fa..77889867a 100644 --- a/src/video/fbcon/SDL_fbevents.c +++ b/src/video/fbcon/SDL_fbevents.c @@ -953,6 +953,11 @@ static void switch_vt_done(_THIS) 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)