Skip to content

Commit

Permalink
An expose event is now sent when using XVideo output.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 31, 2001
1 parent b97c37d commit c702c04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/video/x11/SDL_x11events.c
Expand Up @@ -407,11 +407,7 @@ printf("ConfigureNotify! (resize: %dx%d)\n", xevent.xconfigure.width, xevent.xco
printf("Expose (count = %d)\n", xevent.xexpose.count);
#endif
if ( SDL_VideoSurface && (xevent.xexpose.count == 0) ) {
if ( SDL_VideoSurface->flags & SDL_OPENGL ) {
SDL_PrivateExpose();
} else {
X11_RefreshDisplay(this);
}
X11_RefreshDisplay(this);
}
}
break;
Expand Down
6 changes: 5 additions & 1 deletion src/video/x11/SDL_x11image.c
Expand Up @@ -29,6 +29,7 @@ static char rcsid =

#include "SDL_error.h"
#include "SDL_endian.h"
#include "SDL_events_c.h"
#include "SDL_x11image_c.h"

#if defined(__USLC__)
Expand Down Expand Up @@ -427,8 +428,11 @@ void X11_EnableAutoRefresh(_THIS)

void X11_RefreshDisplay(_THIS)
{
/* Don't refresh a display that doesn't have an image (like GL) */
/* Don't refresh a display that doesn't have an image (like GL)
Instead, post an expose event so the application can refresh.
*/
if ( ! SDL_Ximage || (enable_autorefresh <= 0) ) {
SDL_PrivateExpose();
return;
}
#ifndef NO_SHARED_MEMORY
Expand Down

0 comments on commit c702c04

Please sign in to comment.