src/video/x11/SDL_x11events.c
changeset 161 eb6b76a95f2d
parent 111 53e3d8ba4321
child 252 e8157fcb3114
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: {