made the game always use software surfaces rather than hardware surfaces...

...under Windows, since Windows seems to have trouble with hardware surfaces
This commit is contained in:
Dave White 2003-09-26 10:58:11 +00:00
parent 4e954b84c9
commit 5c1b18c70d

View file

@ -64,7 +64,11 @@ namespace {
unsigned int get_flags(unsigned int flags)
{
//SDL under Windows doesn't seem to like hardware surfaces for
//some reason.
#ifndef _WIN32
flags |= SDL_HWSURFACE | SDL_DOUBLEBUF;
#endif
if((flags&SDL_FULLSCREEN) == 0)
flags |= SDL_RESIZABLE;