Correctly process top/bottom event messages
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401092
This commit is contained in:
parent
134ad2d722
commit
04f98ae403
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue