Commits

Marcus von Appen committed d5267c0

- added sdl2.SDL_WINDOW_ALLOW_HIGHDPI flag
- added sdl2.SDL_GL_GetDrawableSize() function
- added sdl2.SDL_HINT_RENDER_DIRECT3D_THREADSAFE and
sdl2.SDL_HINT_VIDEO_HIGHDPI_DISABLED hints
- increased sdl2.SDL_PATCHLEVEL

  • Participants
  • Parent commits 390d83d

Comments (0)

Files changed (3)

File sdl2/hints.py

            "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_HintPriority", "SDL_SetHintWithPriority", "SDL_SetHint",
-           "SDL_GetHint", "SDL_ClearHints"
+           "SDL_HINT_VIDEO_HIGHDPI_DISABLED",
+           "SDL_HINT_RENDER_DIRECT3D_THREADSAFE", "SDL_HintPriority",
+           "SDL_SetHintWithPriority", "SDL_SetHint", "SDL_GetHint",
+           "SDL_ClearHints"
            ]
 
 SDL_HINT_FRAMEBUFFER_ACCELERATION = b"SDL_FRAMEBUFFER_ACCELERATION"
 SDL_HINT_ALLOW_TOPMOST = b"SDL_ALLOW_TOPMOST"
 SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS = b"SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS"
 SDL_HINT_TIMER_RESOLUTION = b"SDL_TIMER_RESOLUTION"
+SDL_HINT_VIDEO_HIGHDPI_DISABLED = b"SDL_VIDEO_HIGHDPI_DISABLED"
+SDL_HINT_RENDER_DIRECT3D_THREADSAFE = b"SDL_RENDER_DIRECT3D_THREADSAFE"
 
 SDL_HINT_DEFAULT = 0
 SDL_HINT_NORMAL = 1

File sdl2/version.py

 
 SDL_MAJOR_VERSION = 2
 SDL_MINOR_VERSION = 0
-SDL_PATCHLEVEL = 0
+SDL_PATCHLEVEL = 1
 
 def SDL_VERSION(x):
     x.major = SDL_MAJOR_VERSION

File sdl2/video.py

            "SDL_WINDOW_MINIMIZED", "SDL_WINDOW_MAXIMIZED",
            "SDL_WINDOW_INPUT_GRABBED", "SDL_WINDOW_INPUT_FOCUS",
            "SDL_WINDOW_MOUSE_FOCUS", "SDL_WINDOW_FULLSCREEN_DESKTOP",
-           "SDL_WINDOW_FOREIGN", "SDL_WINDOWPOS_UNDEFINED_MASK",
+           "SDL_WINDOW_FOREIGN", "SDL_WINDOW_ALLOW_HIGHDPI",
+           "SDL_WINDOWPOS_UNDEFINED_MASK",
            "SDL_WINDOWPOS_UNDEFINED_DISPLAY", "SDL_WINDOWPOS_UNDEFINED",
            "SDL_WINDOWPOS_ISUNDEFINED", "SDL_WINDOWPOS_CENTERED_MASK",
            "SDL_WINDOWPOS_CENTERED_DISPLAY", "SDL_WINDOWPOS_CENTERED",
 SDL_WINDOW_MOUSE_FOCUS = 0x00000400
 SDL_WINDOW_FULLSCREEN_DESKTOP = (SDL_WINDOW_FULLSCREEN | 0x00001000)
 SDL_WINDOW_FOREIGN = 0x00000800
+SDL_WINDOW_ALLOW_HIGHDPI = 0x00002000
 
 SDL_WINDOWPOS_UNDEFINED_MASK = 0x1FFF0000
 SDL_WINDOWPOS_UNDEFINED_DISPLAY = lambda x: (SDL_WINDOWPOS_UNDEFINED_MASK | x)
 SDL_GL_GetSwapInterval = _bind("SDL_GL_GetSwapInterval", None, c_int)
 SDL_GL_SwapWindow = _bind("SDL_GL_SwapWindow", [POINTER(SDL_Window)])
 SDL_GL_DeleteContext = _bind("SDL_GL_DeleteContext", [SDL_GLContext])
+SDL_GL_GetDrawableSize = _bind("SDL_GL_GetDrawableSize", [POINTER(SDL_Window), POINTER(c_int), POINTER(c_int)])
+