Commits

Marcus von Appen committed 89c048c

- Added SDL_HINT_VIDEO_WIN_D3DCOMPILER and
SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES hint flags
- Fixed version unittest

  • Participants
  • Parent commits 12917d4

Comments (0)

Files changed (2)

            "SDL_HINT_XINPUT_ENABLED", "SDL_HINT_GAMECONTROLLERCONFIG",
            "SDL_HINT_ALLOW_TOPMOST", "SDL_HINT_DEFAULT", "SDL_HINT_NORMAL",
            "SDL_HINT_OVERRIDE", "SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS",
-           "SDL_HINT_VIDEO_HIGHDPI_DISABLED", "SDL_HINT_ACCEL_AS_JOY",
+           "SDL_HINT_VIDEO_HIGHDPI_DISABLED",
+           "SDL_HINT_ACCELEROMETER_AS_JOYSTICK",
            "SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK",
            "SDL_HINT_RENDER_DIRECT3D_THREADSAFE",
            "SDL_HINT_VIDEO_FULLSCREEN_SPACES",
            "SDL_HINT_MOUSE_RELATIVE_MODE_WARP",
+           "SDL_HINT_VIDEO_WIN_D3DCOMPILER",
            "SDL_HINT_VIDEO_WINDOW_SHARE_PIXEL_FORMAT",
            "SDL_HINT_VIDEO_ALLOW_SCREENSAVER",
-           "SDL_HintPriority", "SDL_SetHintWithPriority", "SDL_SetHint",
-           "SDL_GetHint", "SDL_ClearHints"
-           ]
+           "SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES", "SDL_HintPriority",
+           "SDL_SetHintWithPriority", "SDL_SetHint", "SDL_GetHint",
+           "SDL_ClearHints" ]
 
 SDL_HINT_FRAMEBUFFER_ACCELERATION = b"SDL_FRAMEBUFFER_ACCELERATION"
 SDL_HINT_RENDER_DRIVER = b"SDL_RENDER_DRIVER"
 SDL_HINT_VIDEO_FULLSCREEN_SPACES = b"SDL_VIDEO_FULLSCREEN_SPACES"
 SDL_HINT_IDLE_TIMER_DISABLED = b"SDL_IOS_IDLE_TIMER_DISABLED"
 SDL_HINT_ORIENTATIONS = b"SDL_IOS_ORIENTATIONS"
-SDL_HINT_ACCEL_AS_JOY = b"SDL_ACCEL_AS_JOY"
+SDL_HINT_ACCELEROMETER_AS_JOYSTICK = b"SDL_ACCELEROMETER_AS_JOYSTICK"
 SDL_HINT_XINPUT_ENABLED = b"SDL_XINPUT_ENABLED"
 SDL_HINT_GAMECONTROLLERCONFIG = b"SDL_GAMECONTROLLERCONFIG"
 SDL_HINT_ALLOW_TOPMOST = b"SDL_ALLOW_TOPMOST"
 SDL_HINT_MOUSE_RELATIVE_MODE_WARP = b"SDL_MOUSE_RELATIVE_MODE_WARP"
 SDL_HINT_VIDEO_WINDOW_SHARE_PIXEL_FORMAT = b"SDL_VIDEO_WINDOW_SHARE_PIXEL_FORMAT"
 SDL_HINT_VIDEO_ALLOW_SCREENSAVER = b"SDL_VIDEO_ALLOW_SCREENSAVER"
+SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES = b"SDL_VIDEO_MAC_FULLSCREEN_SPACES"
+SDL_HINT_VIDEO_WIN_D3DCOMPILER = b"SDL_VIDEO_WIN_D3DCOMPILER"
 
 SDL_HINT_DEFAULT = 0
 SDL_HINT_NORMAL = 1

sdl2/test/version_test.py

         self.assertEqual(type(v), version.SDL_version)
         self.assertEqual(v.major, 2)
         self.assertEqual(v.minor, 0)
-        self.assertEqual(v.patch, 1)
+        self.assertEqual(v.patch, 2)
 
     def test_SDL_VERSIONNUM(self):
         self.assertEqual(version.SDL_VERSIONNUM(1, 2, 3), 1203)
         self.assertTrue(version.SDL_VERSION_ATLEAST(1, 2, 3))
         self.assertTrue(version.SDL_VERSION_ATLEAST(2, 0, 0))
         self.assertTrue(version.SDL_VERSION_ATLEAST(2, 0, 1))
-        self.assertFalse(version.SDL_VERSION_ATLEAST(2, 0, 2))
+        self.assertFalse(version.SDL_VERSION_ATLEAST(2, 0, 100))
 
     def test_SDL_GetRevision(self):
         self.assertEqual(version.SDL_GetRevision()[0:3], b"hg-")