pal_config.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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_PREFIX "./"
  11. # define PAL_SAVE_PREFIX "./"
  12. # define PAL_DEFAULT_WINDOW_WIDTH 640
  13. # define PAL_DEFAULT_WINDOW_HEIGHT 400
  14. # define PAL_DEFAULT_FULLSCREEN_HEIGHT 480
  15. # if SDL_VERSION_ATLEAST(2,0,0)
  16. # define PAL_VIDEO_INIT_FLAGS (SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE | (gConfig.fFullScreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0))
  17. # else
  18. # define PAL_VIDEO_INIT_FLAGS (SDL_HWSURFACE | SDL_RESIZABLE | (gConfig.fFullScreen ? SDL_FULLSCREEN : 0))
  19. # endif
  20. # define PAL_SDL_INIT_FLAGS (SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_CDROM | SDL_INIT_NOPARACHUTE | SDL_INIT_JOYSTICK)
  21. # define PAL_PLATFORM NULL
  22. # define PAL_CREDIT NULL
  23. # define PAL_PORTYEAR NULL
  24. #define PAL_HAS_NATIVEMIDI 1
  25. #define PAL_HAS_CONFIG_PAGE 0
  26. #define PAL_FILESYSTEM_IGNORE_CASE 1
  27. #endif