Commits

Marcel Rodrigues committed c8cb774

- fixed default value for bpp in BitmapFont.render()

  • Participants
  • Parent commits d009e3b
  • Branches fix-bitmapfont

Comments (0)

Files changed (1)

File sdl2/ext/font.py

             th += h
 
         if bpp is None:
-            bpp = self.surface.format.BitsPerPixel
+            bpp = self.surface.format.contents.BitsPerPixel
         imgsurface = SoftwareSprite(tw, th, bpp)
         target = imgsurface.surface
         blit_surface = surface.SDL_BlitSurface