Mercurial > sdl-ios-xcode
diff src/video/dga/SDL_dgavideo.c @ 540:4bcfb93e0dfe
Greatly improved X11 DGA video speed (thanks Cezary!)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 09 Nov 2002 06:20:46 +0000 |
parents | 1be0cdaf8092 |
children | b528214c8c9a |
line wrap: on
line diff
--- a/src/video/dga/SDL_dgavideo.c Sat Nov 09 06:13:28 2002 +0000 +++ b/src/video/dga/SDL_dgavideo.c Sat Nov 09 06:20:46 2002 +0000 @@ -816,7 +816,9 @@ 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 @@ 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();