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:
parent
4e954b84c9
commit
5c1b18c70d
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue