pal_config.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. #ifndef PAL_HAS_JOYSTICKS
  3. # define PAL_HAS_JOYSTICKS 1
  4. #endif
  5. #if SDL_MAJOR_VERSION == 1 && SDL_MINOR_VERSION <= 2
  6. # define PAL_ALLOW_KEYREPEAT 1
  7. # define PAL_HAS_SDLCD 1
  8. #endif
  9. #define PAL_PREFIX "./"
  10. #define PAL_SAVE_PREFIX "./"
  11. #define PAL_DEFAULT_WINDOW_WIDTH 640
  12. #define PAL_DEFAULT_WINDOW_HEIGHT 400
  13. #define PAL_DEFAULT_FULLSCREEN_HEIGHT 480
  14. #if SDL_VERSION_ATLEAST(2,0,0)
  15. # define PAL_VIDEO_INIT_FLAGS (SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE | (gConfig.fFullScreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0))
  16. #else
  17. # define PAL_VIDEO_INIT_FLAGS (SDL_HWSURFACE | SDL_RESIZABLE | (gConfig.fFullScreen ? SDL_FULLSCREEN : 0))
  18. # define PAL_FATAL_OUTPUT(s) MessageBoxA(0, (s), "FATAL ERROR", MB_ICONERROR)
  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 1
  26. #define PAL_FILESYSTEM_IGNORE_CASE 1
  27. #define PAL_HAS_NATIVEMIDI 1