src/video/gem/SDL_gemevents.c
branchSDL-1.2
changeset 11608 850f1a16dc81
parent 11576 b3255371e439
     1.1 --- a/src/video/gem/SDL_gemevents.c	Mon Oct 09 21:36:10 2017 +0200
     1.2 +++ b/src/video/gem/SDL_gemevents.c	Thu Oct 12 22:49:00 2017 +0200
     1.3 @@ -208,9 +208,7 @@
     1.4  			/* Continue with TOP event processing */
     1.5  		case WM_ONTOP:
     1.6  			SDL_PrivateAppActive(1, SDL_APPINPUTFOCUS);
     1.7 -			if (VDI_setpalette) {
     1.8 -				VDI_setpalette(this, VDI_curpalette);
     1.9 -			}
    1.10 +			VDI_setpalette(this, VDI_curpalette);
    1.11  			break;
    1.12  		case WM_REDRAW:
    1.13  			if (!GEM_lock_redraw) {
    1.14 @@ -283,9 +281,7 @@
    1.15  			/* Continue with BOTTOM event processing */
    1.16  		case WM_UNTOPPED:
    1.17  			SDL_PrivateAppActive(0, SDL_APPINPUTFOCUS);
    1.18 -			if (VDI_setpalette) {
    1.19 -				VDI_setpalette(this, VDI_oldpalette);
    1.20 -			}
    1.21 +			VDI_setpalette(this, VDI_oldpalette);
    1.22  			break;
    1.23  	}
    1.24