comparison src/video/gem/SDL_gemevents.c @ 1091:67b7f0f410a2

Correctly process top/bottom event messages
author Patrice Mandin <patmandin@gmail.com>
date Thu, 07 Jul 2005 15:29:38 +0000
parents 37fc855580af
children 1f37386ef508
comparison
equal deleted inserted replaced
1090:37fc855580af 1091:67b7f0f410a2
246 case WM_MOVED: 246 case WM_MOVED:
247 wind_set(message[3],WF_CURRXYWH,message[4],message[5],message[6],message[7]); 247 wind_set(message[3],WF_CURRXYWH,message[4],message[5],message[6],message[7]);
248 break; 248 break;
249 case WM_TOPPED: 249 case WM_TOPPED:
250 wind_set(message[3],WF_TOP,message[4],0,0,0); 250 wind_set(message[3],WF_TOP,message[4],0,0,0);
251 /* Continue with TOP event processing */
252 case WM_ONTOP:
251 SDL_PrivateAppActive(1, SDL_APPINPUTFOCUS); 253 SDL_PrivateAppActive(1, SDL_APPINPUTFOCUS);
252 if (VDI_setpalette) { 254 if (VDI_setpalette) {
253 VDI_setpalette(this, VDI_curpalette); 255 VDI_setpalette(this, VDI_curpalette);
254 } 256 }
255 break; 257 break;
310 GEM_lock_redraw = SDL_TRUE; /* Prevent redraw till buffers resized */ 312 GEM_lock_redraw = SDL_TRUE; /* Prevent redraw till buffers resized */
311 SDL_PrivateResize(w2, h2); 313 SDL_PrivateResize(w2, h2);
312 } 314 }
313 break; 315 break;
314 case WM_BOTTOMED: 316 case WM_BOTTOMED:
317 wind_set(message[3],WF_BOTTOM,0,0,0,0);
318 /* Continue with BOTTOM event processing */
315 case WM_UNTOPPED: 319 case WM_UNTOPPED:
316 wind_set(message[3],WF_BOTTOM,message[4],0,0,0);
317 SDL_PrivateAppActive(0, SDL_APPINPUTFOCUS); 320 SDL_PrivateAppActive(0, SDL_APPINPUTFOCUS);
318 if (VDI_setpalette) { 321 if (VDI_setpalette) {
319 VDI_setpalette(this, VDI_oldpalette); 322 VDI_setpalette(this, VDI_oldpalette);
320 } 323 }
321 break; 324 break;