diff pytouhou/ui/sprite.pyx @ 420:3a7b36324611

Replace Pyglet’s image loader with our SDL2_image-based one.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 16 Jul 2013 21:07:15 +0200
parents c5ba11ede097
children 878273a984c4
line wrap: on
line diff
--- a/pytouhou/ui/sprite.pyx
+++ b/pytouhou/ui/sprite.pyx
@@ -61,8 +61,8 @@ cpdef object get_sprite_rendering_data(o
     tox, toy = sprite.texoffsets
     uvs = (tx * x_1 + tox,
            (tx + tw) * x_1 + tox,
-           1. - (ty * y_1 + toy),
-           1. - ((ty + th) * y_1 + toy))
+           ty * y_1 + toy,
+           (ty + th) * y_1 + toy)
 
     (x1, x2 , x3, x4), (y1, y2, y3, y4), (z1, z2, z3, z4), _ = vertmat.data