Correctly process top/bottom event messages
authorPatrice Mandin <patmandin@gmail.com>
Thu, 07 Jul 2005 15:29:38 +0000
changeset 1091 67b7f0f410a2
parent 1090 37fc855580af
child 1092 1f37386ef508
Correctly process top/bottom event messages
src/video/gem/SDL_gemevents.c
--- a/src/video/gem/SDL_gemevents.c	Thu Jul 07 15:06:38 2005 +0000
+++ b/src/video/gem/SDL_gemevents.c	Thu Jul 07 15:29:38 2005 +0000
@@ -248,6 +248,8 @@
 			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 @@
 			}
 			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);