changeset 129:d629e102575c fix-bitmapfont

- fixed argument order to blit_surface() in BitmapFont's render methods.
author Marcel Rodrigues <marcelgmr@gmail.com>
date Thu, 14 Nov 2013 11:02:13 -0200
parents 5fbe00c3974d
children 0e325f44185e
files sdl2/ext/font.py
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/sdl2/ext/font.py	Thu Nov 14 10:56:13 2013 -0200
+++ b/sdl2/ext/font.py	Thu Nov 14 11:02:13 2013 -0200
@@ -103,12 +103,12 @@
         fontsf = self.surface
         offsets = self.offsets
 
-        srcr = rect.SDL_Rect(0, 0, 0, 0)
+        dstr = rect.SDL_Rect(0, 0, 0, 0)
         for line in lines:
             for c in line:
-                srcr.x = x
-                srcr.y = y
-                blit_surface(target, srcr, fontsf, offsets[c])
+                dstr.x = x
+                dstr.y = y
+                blit_surface(fontsf, offsets[c], target, dstr)
                 x += w
             y += h
         return imgsurface
@@ -138,12 +138,12 @@
         fontsf = self.surface
         offsets = self.offsets
 
-        srcr = rect.SDL_Rect(0, 0, 0, 0)
+        dstr = rect.SDL_Rect(0, 0, 0, 0)
         for line in lines:
             for c in line:
-                srcr.x = x
-                srcr.y = y
-                blit_surface(target, srcr, fontsf, offsets[c])
+                dstr.x = x
+                dstr.y = y
+                blit_surface(fontsf, offsets[c], target, dstr)
                 x += w
             y += h
         return (offset[0], offset[1], x + w, y + h)