Commit 2090ef63 authored by Sam Lantinga's avatar Sam Lantinga

An expose event is now sent when using XVideo output.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40162
parent 7567d402
...@@ -407,11 +407,7 @@ printf("ConfigureNotify! (resize: %dx%d)\n", xevent.xconfigure.width, xevent.xco ...@@ -407,11 +407,7 @@ printf("ConfigureNotify! (resize: %dx%d)\n", xevent.xconfigure.width, xevent.xco
printf("Expose (count = %d)\n", xevent.xexpose.count); printf("Expose (count = %d)\n", xevent.xexpose.count);
#endif #endif
if ( SDL_VideoSurface && (xevent.xexpose.count == 0) ) { if ( SDL_VideoSurface && (xevent.xexpose.count == 0) ) {
if ( SDL_VideoSurface->flags & SDL_OPENGL ) { X11_RefreshDisplay(this);
SDL_PrivateExpose();
} else {
X11_RefreshDisplay(this);
}
} }
} }
break; break;
......
...@@ -29,6 +29,7 @@ static char rcsid = ...@@ -29,6 +29,7 @@ static char rcsid =
#include "SDL_error.h" #include "SDL_error.h"
#include "SDL_endian.h" #include "SDL_endian.h"
#include "SDL_events_c.h"
#include "SDL_x11image_c.h" #include "SDL_x11image_c.h"
#if defined(__USLC__) #if defined(__USLC__)
...@@ -427,8 +428,11 @@ void X11_EnableAutoRefresh(_THIS) ...@@ -427,8 +428,11 @@ void X11_EnableAutoRefresh(_THIS)
void X11_RefreshDisplay(_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) ) { if ( ! SDL_Ximage || (enable_autorefresh <= 0) ) {
SDL_PrivateExpose();
return; return;
} }
#ifndef NO_SHARED_MEMORY #ifndef NO_SHARED_MEMORY
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment