Skip to content

Commit

Permalink
Greatly improved X11 DGA video speed (thanks Cezary!)
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 9, 2002
1 parent 4cbe470 commit f700ee6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs.html
Expand Up @@ -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!)
Expand Down
8 changes: 6 additions & 2 deletions src/video/dga/SDL_dgavideo.c
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit f700ee6

Please sign in to comment.