Commit bb1c6662 authored by Sam Lantinga's avatar Sam Lantinga

Greatly improved X11 DGA video speed (thanks Cezary!)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40541
parent 994f095e
...@@ -20,6 +20,7 @@ The latest stable release may be found on the ...@@ -20,6 +20,7 @@ The latest stable release may be found on the
Major changes since SDL 1.0.0: Major changes since SDL 1.0.0:
</H2> </H2>
<UL> <UL>
<LI> 1.2.6: Greatly improved X11 DGA video speed (thanks Cezary!)
<LI> 1.2.6: Added MMX audio mixing code for gcc (thanks Stephane!) <LI> 1.2.6: Added MMX audio mixing code for gcc (thanks Stephane!)
<LI> 1.2.6: Fixed potential dropped events under DirectInput <LI> 1.2.6: Fixed potential dropped events under DirectInput
<LI> 1.2.6: Added Visual C++ 7 (.NET) projects (thanks James!) <LI> 1.2.6: Added Visual C++ 7 (.NET) projects (thanks James!)
......
...@@ -816,7 +816,9 @@ static int DGA_FillHWRect(_THIS, SDL_Surface *dst, SDL_Rect *rect, Uint32 color) ...@@ -816,7 +816,9 @@ static int DGA_FillHWRect(_THIS, SDL_Surface *dst, SDL_Rect *rect, Uint32 color)
printf("Hardware accelerated rectangle fill: %dx%d at %d,%d\n", w, h, x, y); printf("Hardware accelerated rectangle fill: %dx%d at %d,%d\n", w, h, x, y);
#endif #endif
SDL_NAME(XDGAFillRectangle)(DGA_Display, DGA_Screen, x, y, w, h, color); SDL_NAME(XDGAFillRectangle)(DGA_Display, DGA_Screen, x, y, w, h, color);
XFlush(DGA_Display); if ( !(this->screen->flags & SDL_DOUBLEBUF) ) {
XFlush(DGA_Display);
}
DGA_AddBusySurface(dst); DGA_AddBusySurface(dst);
UNLOCK_DISPLAY(); UNLOCK_DISPLAY();
return(0); return(0);
...@@ -856,7 +858,9 @@ static int HWAccelBlit(SDL_Surface *src, SDL_Rect *srcrect, ...@@ -856,7 +858,9 @@ static int HWAccelBlit(SDL_Surface *src, SDL_Rect *srcrect,
SDL_NAME(XDGACopyArea)(DGA_Display, DGA_Screen, SDL_NAME(XDGACopyArea)(DGA_Display, DGA_Screen,
srcx, srcy, w, h, dstx, dsty); srcx, srcy, w, h, dstx, dsty);
} }
XFlush(DGA_Display); if ( !(this->screen->flags & SDL_DOUBLEBUF) ) {
XFlush(DGA_Display);
}
DGA_AddBusySurface(src); DGA_AddBusySurface(src);
DGA_AddBusySurface(dst); DGA_AddBusySurface(dst);
UNLOCK_DISPLAY(); UNLOCK_DISPLAY();
......
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