comparison src/video/x11/SDL_x11events.c @ 161:eb6b76a95f2d

An expose event is now sent when using XVideo output.
author Sam Lantinga <slouken@libsdl.org>
date Fri, 31 Aug 2001 21:08:30 +0000
parents 53e3d8ba4321
children e8157fcb3114
comparison
equal deleted inserted replaced
160:2a8d929f50e0 161:eb6b76a95f2d
405 case Expose: { 405 case Expose: {
406 #ifdef DEBUG_XEVENTS 406 #ifdef DEBUG_XEVENTS
407 printf("Expose (count = %d)\n", xevent.xexpose.count); 407 printf("Expose (count = %d)\n", xevent.xexpose.count);
408 #endif 408 #endif
409 if ( SDL_VideoSurface && (xevent.xexpose.count == 0) ) { 409 if ( SDL_VideoSurface && (xevent.xexpose.count == 0) ) {
410 if ( SDL_VideoSurface->flags & SDL_OPENGL ) { 410 X11_RefreshDisplay(this);
411 SDL_PrivateExpose();
412 } else {
413 X11_RefreshDisplay(this);
414 }
415 } 411 }
416 } 412 }
417 break; 413 break;
418 414
419 default: { 415 default: {