mirror of
https://github.com/yawut/SDL.git
synced 2026-08-26 18:55:32 -05:00
Greatly improved X11 DGA video speed (thanks Cezary!)
This commit is contained in:
@@ -20,6 +20,7 @@ The latest stable release may be found on the
|
||||
Major changes since SDL 1.0.0:
|
||||
</H2>
|
||||
<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: Fixed potential dropped events under DirectInput
|
||||
<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)
|
||||
printf("Hardware accelerated rectangle fill: %dx%d at %d,%d\n", w, h, x, y);
|
||||
#endif
|
||||
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);
|
||||
UNLOCK_DISPLAY();
|
||||
return(0);
|
||||
@@ -856,7 +858,9 @@ static int HWAccelBlit(SDL_Surface *src, SDL_Rect *srcrect,
|
||||
SDL_NAME(XDGACopyArea)(DGA_Display, DGA_Screen,
|
||||
srcx, srcy, w, h, dstx, dsty);
|
||||
}
|
||||
XFlush(DGA_Display);
|
||||
if ( !(this->screen->flags & SDL_DOUBLEBUF) ) {
|
||||
XFlush(DGA_Display);
|
||||
}
|
||||
DGA_AddBusySurface(src);
|
||||
DGA_AddBusySurface(dst);
|
||||
UNLOCK_DISPLAY();
|
||||
|
||||
Reference in New Issue
Block a user