1. Marcus von Appen
  2. py-sdl2

Commits

Marcus von Appen  committed 1d5ea29

- issue #31: SDL_MIXER_VERSION() now returns the correct version
- fix a small regression after the hints test fix for Python 3.x

  • Participants
  • Parent commits 14d6416
  • Branches default

Comments (0)

Files changed (2)

File sdl2/sdlmixer.py

View file
 
 
 def SDL_MIXER_VERSION(x):
-    x.major = SDL_TTF_MAJOR_VERSION
-    x.minor = SDL_TTF_MINOR_VERSION
-    x.patch = SDL_TTF_PATCHLEVEL
+    x.major = SDL_MIXER_MAJOR_VERSION
+    x.minor = SDL_MIXER_MINOR_VERSION
+    x.patch = SDL_MIXER_PATCHLEVEL
 
 MIX_MAJOR_VERSION = SDL_MIXER_MAJOR_VERSION
 MIX_MINOR_VERSION = SDL_MIXER_MINOR_VERSION

File sdl2/test/hints_test.py

View file
             data = cast(userdata, c_char_p)
             calls.append((data.value, name, oldval, newval))
         hintcb = hints.SDL_HintCallback(callback)
-        udata = c_char_p("banana")
+        udata = c_char_p(b"banana")
         hints.SDL_AddHintCallback(hints.SDL_HINT_ALLOW_TOPMOST, hintcb,
                                   udata)
         # SDL_AddHintCallback invokes the callback once.