Get updates to the shadow surface while switched away

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401740
This commit is contained in:
Sam Lantinga 2006-05-08 05:36:45 +00:00
parent 4dadaeae5a
commit c69a0ae2af

View file

@ -953,6 +953,11 @@ static void switch_vt_done(_THIS)
screen_contents = NULL; 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)); SDL_PrivateAppActive(1, (SDL_APPACTIVE|SDL_APPINPUTFOCUS|SDL_APPMOUSEFOCUS));
} }
static void switch_vt(_THIS, unsigned short which) static void switch_vt(_THIS, unsigned short which)