pal_config.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef PAL_CONFIG_H
  2. # define PAL_CONFIG_H
  3. # ifndef PAL_HAS_JOYSTICKS
  4. # define PAL_HAS_JOYSTICKS 1
  5. # endif
  6. # if SDL_MAJOR_VERSION == 1 && SDL_MINOR_VERSION <= 2
  7. # define PAL_ALLOW_KEYREPEAT 1
  8. # define PAL_HAS_SDLCD 1
  9. # endif
  10. #define PAL_HAS_NATIVEMIDI 1
  11. # define PAL_PREFIX "./"
  12. # define PAL_SAVE_PREFIX "./"
  13. # define PAL_DEFAULT_WINDOW_WIDTH 640
  14. # define PAL_DEFAULT_WINDOW_HEIGHT 400
  15. # define PAL_DEFAULT_FULLSCREEN_HEIGHT 480
  16. # if SDL_VERSION_ATLEAST(2,0,0)
  17. # define PAL_VIDEO_INIT_FLAGS (SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE | (gConfig.fFullScreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0))
  18. # else
  19. # define PAL_VIDEO_INIT_FLAGS (SDL_HWSURFACE | SDL_RESIZABLE | (gConfig.fFullScreen ? SDL_FULLSCREEN : 0))
  20. # endif
  21. # define PAL_SDL_INIT_FLAGS (SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_CDROM | SDL_INIT_NOPARACHUTE | SDL_INIT_JOYSTICK)
  22. # define PAL_PLATFORM NULL
  23. # define PAL_CREDIT NULL
  24. # define PAL_PORTYEAR NULL
  25. #define PAL_HAS_NATIVEMIDI 1
  26. #define PAL_HAS_CONFIG_PAGE 0
  27. #define PAL_FILESYSTEM_IGNORE_CASE 1
  28. #endif