comparison 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
comparison
equal deleted inserted replaced
1073:6d3c1134cd19 1074:936da0056ed3
243 wind_set(message[3],WF_CURRXYWH,message[4],message[5],message[6],message[7]); 243 wind_set(message[3],WF_CURRXYWH,message[4],message[5],message[6],message[7]);
244 break; 244 break;
245 case WM_TOPPED: 245 case WM_TOPPED:
246 wind_set(message[3],WF_TOP,message[4],0,0,0); 246 wind_set(message[3],WF_TOP,message[4],0,0,0);
247 SDL_PrivateAppActive(1, SDL_APPINPUTFOCUS); 247 SDL_PrivateAppActive(1, SDL_APPINPUTFOCUS);
248 if (VDI_setpalette) {
249 VDI_setpalette(this, VDI_curpalette);
250 }
248 break; 251 break;
249 case WM_REDRAW: 252 case WM_REDRAW:
250 if (!GEM_lock_redraw) { 253 if (!GEM_lock_redraw) {
251 GEM_wind_redraw(this, message[3],&message[4]); 254 GEM_wind_redraw(this, message[3],&message[4]);
252 } 255 }
305 } 308 }
306 break; 309 break;
307 case WM_BOTTOMED: 310 case WM_BOTTOMED:
308 case WM_UNTOPPED: 311 case WM_UNTOPPED:
309 SDL_PrivateAppActive(0, SDL_APPINPUTFOCUS); 312 SDL_PrivateAppActive(0, SDL_APPINPUTFOCUS);
313 if (VDI_setpalette) {
314 VDI_setpalette(this, VDI_oldpalette);
315 }
310 break; 316 break;
311 } 317 }
312 318
313 return quit; 319 return quit;
314 } 320 }