1. Marcus von Appen
  2. py-sdl2
  3. Issues
Issue #31 resolved

SDL_MIXER_VERSION broken

arifsch
created an issue

I noticed a small copy & paste error in sdlmixer. The function sdlmixer.SDL_MIXER_VERSION attempts to use values from sdlttf like SDL_TTF_MAJOR_VERSION, etc. This fails as these values are neither defined nor imported in sdlmixer.

Instead it should assign the corresponding SDL_MIXER_* version numbers:

--- a/sdl2/sdlmixer.py  Sat Dec 28 09:21:24 2013 +0100
+++ b/sdl2/sdlmixer.py  Sat Dec 28 15:38:00 2013 +0100
@@ -68,9 +68,9 @@


 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

Comments (1)

  1. Log in to comment