Mercurial > sdl-ios-xcode
diff src/video/gem/SDL_gemevents.c @ 1074:936da0056ed3
Save/restore system palette when application topped/untopped
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Tue, 07 Jun 2005 11:52:46 +0000 |
parents | 6d3c1134cd19 |
children | 6091b9ca1a97 |
line wrap: on
line diff
--- 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; }