src/video/dga/SDL_dgavideo.c
changeset 540 4bcfb93e0dfe
parent 462 1be0cdaf8092
child 559 b528214c8c9a
equal deleted inserted replaced
539:a9e38f3b8e4d 540:4bcfb93e0dfe
   814 	h = rect->h;
   814 	h = rect->h;
   815 #if 0
   815 #if 0
   816   printf("Hardware accelerated rectangle fill: %dx%d at %d,%d\n", w, h, x, y);
   816   printf("Hardware accelerated rectangle fill: %dx%d at %d,%d\n", w, h, x, y);
   817 #endif
   817 #endif
   818 	SDL_NAME(XDGAFillRectangle)(DGA_Display, DGA_Screen, x, y, w, h, color);
   818 	SDL_NAME(XDGAFillRectangle)(DGA_Display, DGA_Screen, x, y, w, h, color);
   819 	XFlush(DGA_Display);
   819 	if ( !(this->screen->flags & SDL_DOUBLEBUF) ) {
       
   820 		XFlush(DGA_Display);
       
   821 	}
   820 	DGA_AddBusySurface(dst);
   822 	DGA_AddBusySurface(dst);
   821 	UNLOCK_DISPLAY();
   823 	UNLOCK_DISPLAY();
   822 	return(0);
   824 	return(0);
   823 }
   825 }
   824 
   826 
   854 			srcx, srcy, w, h, dstx, dsty, src->format->colorkey);
   856 			srcx, srcy, w, h, dstx, dsty, src->format->colorkey);
   855 	} else {
   857 	} else {
   856 		SDL_NAME(XDGACopyArea)(DGA_Display, DGA_Screen,
   858 		SDL_NAME(XDGACopyArea)(DGA_Display, DGA_Screen,
   857 			srcx, srcy, w, h, dstx, dsty);
   859 			srcx, srcy, w, h, dstx, dsty);
   858 	}
   860 	}
   859 	XFlush(DGA_Display);
   861 	if ( !(this->screen->flags & SDL_DOUBLEBUF) ) {
       
   862 		XFlush(DGA_Display);
       
   863 	}
   860 	DGA_AddBusySurface(src);
   864 	DGA_AddBusySurface(src);
   861 	DGA_AddBusySurface(dst);
   865 	DGA_AddBusySurface(dst);
   862 	UNLOCK_DISPLAY();
   866 	UNLOCK_DISPLAY();
   863 	return(0);
   867 	return(0);
   864 }
   868 }