Skip to content
Permalink
Browse files

Greatly improved X11 DGA video speed (thanks Cezary!)

  • Loading branch information
slouken committed Nov 9, 2002
1 parent 4cbe470 commit f700ee65c37ff1bacbfe41213ee51dcef3437154
Showing with 7 additions and 2 deletions.
  1. +1 −0 docs.html
  2. +6 −2 src/video/dga/SDL_dgavideo.c
@@ -20,6 +20,7 @@ <H2>
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();

0 comments on commit f700ee6

Please sign in to comment.