src/video/gem/SDL_gemevents.c
changeset 1074 936da0056ed3
parent 1073 6d3c1134cd19
child 1088 6091b9ca1a97
--- a/src/video/gem/SDL_gemevents.c	Mon Jun 06 21:50:26 2005 +0000
+++ b/src/video/gem/SDL_gemevents.c	Tue Jun 07 11:52:46 2005 +0000
@@ -245,6 +245,9 @@
 		case WM_TOPPED:
 			wind_set(message[3],WF_TOP,message[4],0,0,0);
 			SDL_PrivateAppActive(1, SDL_APPINPUTFOCUS);
+			if (VDI_setpalette) {
+				VDI_setpalette(this, VDI_curpalette);
+			}
 			break;
 		case WM_REDRAW:
 			if (!GEM_lock_redraw) {
@@ -307,6 +310,9 @@
 		case WM_BOTTOMED:
 		case WM_UNTOPPED:
 			SDL_PrivateAppActive(0, SDL_APPINPUTFOCUS);
+			if (VDI_setpalette) {
+				VDI_setpalette(this, VDI_oldpalette);
+			}
 			break;
 	}