diff options
author | neonloop | 2021-04-17 21:02:58 +0000 |
---|---|---|
committer | neonloop | 2021-04-17 21:02:58 +0000 |
commit | 337e4622f60e11c179ab39419e65c185b84e05e7 (patch) | |
tree | 481323908ae3f2aeb7f83f07f5c98aa8b81564b1 /src/sdl/graphics.c | |
parent | a151af35091092b4d564b29c67773524502ad779 (diff) | |
download | hydracastlelabyrinth-337e4622f60e11c179ab39419e65c185b84e05e7.tar.gz hydracastlelabyrinth-337e4622f60e11c179ab39419e65c185b84e05e7.tar.bz2 hydracastlelabyrinth-337e4622f60e11c179ab39419e65c185b84e05e7.zip |
Initial trimui s support
Diffstat (limited to 'src/sdl/graphics.c')
-rwxr-xr-x | src/sdl/graphics.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sdl/graphics.c b/src/sdl/graphics.c index 7415b52..f562f9b 100755 --- a/src/sdl/graphics.c +++ b/src/sdl/graphics.c @@ -37,7 +37,11 @@ void PHL_GraphicsInit() Input_InitJoystick(); - uint32_t flags = SDL_HWSURFACE|SDL_DOUBLEBUF; +#ifdef TRIMUI + uint32_t flags = SDL_SWSURFACE; +#else + uint32_t flags = SDL_HWSURFACE|SDL_DOUBLEBUF; +#endif if(wantFullscreen || desktopFS) flags |= SDL_FULLSCREEN; screen = SDL_SetVideoMode((desktopFS)?0:screenW, (desktopFS)?0:screenH, 0, flags); |