Greatly improved X11 DGA video speed (thanks Cezary!)
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40541
This commit is contained in:
parent
994f095e2e
commit
bb1c6662b5
2 changed files with 7 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue