mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-04 14:37:46 -04:00
add SDL SWSURFACE support
This commit is contained in:
parent
4e0bc79405
commit
2de059cace
1 changed files with 3 additions and 1 deletions
|
@ -123,7 +123,9 @@ int plat_sdl_change_video_mode(int w, int h, int force)
|
|||
if (plat_target.vout_method == 0) {
|
||||
SDL_PumpEvents();
|
||||
|
||||
#if defined(SDL_TRIPLEBUF) && defined(SDL_BUFFER_3X)
|
||||
#if defined SDL_SURFACE_SW
|
||||
plat_sdl_screen = SDL_SetVideoMode(w, h, 16, SDL_SWSURFACE);
|
||||
#elif defined(SDL_TRIPLEBUF) && defined(SDL_BUFFER_3X)
|
||||
plat_sdl_screen = SDL_SetVideoMode(w, h, 16, SDL_HWSURFACE | SDL_TRIPLEBUF);
|
||||
#else
|
||||
plat_sdl_screen = SDL_SetVideoMode(w, h, 16, SDL_HWSURFACE | SDL_DOUBLEBUF);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue