changeset 1091:67b7f0f410a2

Correctly process top/bottom event messages
author Patrice Mandin <patmandin@gmail.com>
date Thu, 07 Jul 2005 15:29:38 +0000
parents 37fc855580af
children 1f37386ef508
files src/video/gem/SDL_gemevents.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);