src/video/x11/SDL_x11image.c
changeset 161 eb6b76a95f2d
parent 0 74212992fb08
child 166 39877400bd1e
     1.1 --- a/src/video/x11/SDL_x11image.c	Fri Aug 31 20:53:05 2001 +0000
     1.2 +++ b/src/video/x11/SDL_x11image.c	Fri Aug 31 21:08:30 2001 +0000
     1.3 @@ -29,6 +29,7 @@
     1.4  
     1.5  #include "SDL_error.h"
     1.6  #include "SDL_endian.h"
     1.7 +#include "SDL_events_c.h"
     1.8  #include "SDL_x11image_c.h"
     1.9  
    1.10  #if defined(__USLC__)
    1.11 @@ -427,8 +428,11 @@
    1.12  
    1.13  void X11_RefreshDisplay(_THIS)
    1.14  {
    1.15 -	/* Don't refresh a display that doesn't have an image (like GL) */
    1.16 +	/* Don't refresh a display that doesn't have an image (like GL)
    1.17 +	   Instead, post an expose event so the application can refresh.
    1.18 +	 */
    1.19  	if ( ! SDL_Ximage || (enable_autorefresh <= 0) ) {
    1.20 +		SDL_PrivateExpose();
    1.21  		return;
    1.22  	}
    1.23  #ifndef NO_SHARED_MEMORY