Correctly process top/bottom event messages

This commit is contained in:
Patrice Mandin 2005-07-07 15:29:38 +00:00
parent 0ffad03074
commit 4d1afbafef

View File

@ -248,6 +248,8 @@ static int do_messages(_THIS, short *message)
break;
case WM_TOPPED:
wind_set(message[3],WF_TOP,message[4],0,0,0);
/* Continue with TOP event processing */
case WM_ONTOP:
SDL_PrivateAppActive(1, SDL_APPINPUTFOCUS);
if (VDI_setpalette) {
VDI_setpalette(this, VDI_curpalette);
@ -312,8 +314,9 @@ static int do_messages(_THIS, short *message)
}
break;
case WM_BOTTOMED:
wind_set(message[3],WF_BOTTOM,0,0,0,0);
/* Continue with BOTTOM event processing */
case WM_UNTOPPED:
wind_set(message[3],WF_BOTTOM,message[4],0,0,0);
SDL_PrivateAppActive(0, SDL_APPINPUTFOCUS);
if (VDI_setpalette) {
VDI_setpalette(this, VDI_oldpalette);