src/video/gem/SDL_gemevents.c
changeset 1074 936da0056ed3
parent 1073 6d3c1134cd19
child 1088 6091b9ca1a97
     1.1 --- a/src/video/gem/SDL_gemevents.c	Mon Jun 06 21:50:26 2005 +0000
     1.2 +++ b/src/video/gem/SDL_gemevents.c	Tue Jun 07 11:52:46 2005 +0000
     1.3 @@ -245,6 +245,9 @@
     1.4  		case WM_TOPPED:
     1.5  			wind_set(message[3],WF_TOP,message[4],0,0,0);
     1.6  			SDL_PrivateAppActive(1, SDL_APPINPUTFOCUS);
     1.7 +			if (VDI_setpalette) {
     1.8 +				VDI_setpalette(this, VDI_curpalette);
     1.9 +			}
    1.10  			break;
    1.11  		case WM_REDRAW:
    1.12  			if (!GEM_lock_redraw) {
    1.13 @@ -307,6 +310,9 @@
    1.14  		case WM_BOTTOMED:
    1.15  		case WM_UNTOPPED:
    1.16  			SDL_PrivateAppActive(0, SDL_APPINPUTFOCUS);
    1.17 +			if (VDI_setpalette) {
    1.18 +				VDI_setpalette(this, VDI_oldpalette);
    1.19 +			}
    1.20  			break;
    1.21  	}
    1.22