pal_config.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef PAL_CONFIG_H
  2. # define PAL_CONFIG_H
  3. #if defined (__SYMBIAN32__)
  4. #undef _WIN32
  5. #undef SDL_INIT_JOYSTICK
  6. #define SDL_INIT_JOYSTICK 0
  7. #define PAL_HAS_MOUSE 1
  8. #define PAL_PREFIX "e:/data/pal/"
  9. #define PAL_SAVE_PREFIX "e:/data/pal/"
  10. # ifdef __S60_5X__
  11. # define PAL_DEFAULT_WINDOW_WIDTH 640
  12. # define PAL_DEFAULT_WINDOW_HEIGHT 360
  13. # else
  14. # define PAL_DEFAULT_WINDOW_WIDTH 320
  15. # define PAL_DEFAULT_WINDOW_HEIGHT 240
  16. # endif
  17. # if SDL_VERSION_ATLEAST(2,0,0)
  18. # define PAL_VIDEO_INIT_FLAGS (SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE)
  19. # else
  20. # define PAL_VIDEO_INIT_FLAGS (SDL_SWSURFACE | (gConfig.fFullScreen ? SDL_FULLSCREEN : 0))
  21. # endif
  22. # define PAL_SDL_INIT_FLAGS (SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_CDROM | SDL_INIT_NOPARACHUTE | SDL_INIT_JOYSTICK)
  23. # define PAL_PLATFORM " Symbian S60 \x79FB\x690D (c) 2009, netwan."
  24. # define PAL_CREDIT "netwan"
  25. # define PAL_PORTYEAR "2009"
  26. # define PAL_LARGE static
  27. # if !defined (__S60_5X__)
  28. # define PAL_SCALE_SCREEN FALSE
  29. # endif
  30. #elif defined(NDS)
  31. #define PAL_PREFIX "./"
  32. #define PAL_SAVE_PREFIX "./"
  33. # define PAL_DEFAULT_WINDOW_WIDTH 293
  34. # define PAL_DEFAULT_WINDOW_HEIGHT 196
  35. # if SDL_VERSION_ATLEAST(2,0,0)
  36. # define PAL_VIDEO_INIT_FLAGS (SDL_WINDOW_SHOWN)
  37. # else
  38. # define PAL_VIDEO_INIT_FLAGS (SDL_SWSURFACE | SDL_FULLSCREEN)
  39. # endif
  40. # define PAL_SDL_INIT_FLAGS (SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_CDROM | SDL_INIT_NOPARACHUTE | SDL_INIT_JOYSTICK)
  41. # define PAL_PLATFORM "Nintendo DS"
  42. # define PAL_CREDIT "(Unknown)"
  43. # define PAL_PORTYEAR "2012"
  44. #endif
  45. #endif