SDL_Compat.h 540 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. /*
  3. * SDL_Compat.h, part of VCMI engine
  4. *
  5. * Authors: listed in file AUTHORS in main folder
  6. *
  7. * License: GNU General Public License v2.0 or later
  8. * Full text of license available in license.txt file, in main folder
  9. *
  10. */
  11. #include <SDL_version.h>
  12. #if (SDL_MAJOR_VERSION == 2)
  13. #include <SDL_keycode.h>
  14. typedef int SDLX_Coord;
  15. typedef int SDLX_Size;
  16. typedef SDL_Keycode SDLKey;
  17. #define SDL_SRCCOLORKEY SDL_TRUE
  18. #define SDL_FULLSCREEN SDL_WINDOW_FULLSCREEN
  19. #else
  20. #error "unknown or unsupported SDL version"
  21. #endif