Added double buffering support

This commit is contained in:
teuf
2001-05-14 21:20:19 +00:00
parent 19620b04a0
commit 767d0630d6

View File

@@ -488,7 +488,7 @@ int startgame(void)
{
unsigned int color32,ScreenPtr2;
int i;
Uint32 flags = SDL_SWSURFACE | SDL_HWPALETTE;
Uint32 flags = SDL_DOUBLEBUF | SDL_HWSURFACE | SDL_HWPALETTE;
DWORD GBitMask;
//STUB_FUNCTION;
@@ -558,7 +558,7 @@ DWORD LockSurface(void)
void UnlockSurface(void)
{
if (SurfaceLocking) SDL_UnlockSurface(surface);
SDL_UpdateRect(surface,0,0,0,0);
SDL_Flip(surface);
SurfBuf = surface->pixels;
}