changeset 215:ab6e6909ce04

Don’t scale texture instead of shifting it, fix ANM’s 28th opcode.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 07 Dec 2011 13:23:02 +0100
parents 136d29ffe3c2
children a842ddd471fd
files pytouhou/ui/sprite.pyx
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pytouhou/ui/sprite.pyx
+++ b/pytouhou/ui/sprite.pyx
@@ -59,8 +59,8 @@ cpdef object get_sprite_rendering_data(o
     x_1 = 1. / sprite.anm.size[0]
     y_1 = 1. / sprite.anm.size[1]
     tox, toy = sprite.texoffsets
-    uvs = [tx * x_1 + tox,         1. - (ty * y_1) + toy,
-           (tx + tw) * x_1 + tox,  1. - (ty * y_1) + toy,
+    uvs = [tx * x_1 + tox,         1. - (ty * y_1 + toy),
+           (tx + tw) * x_1 + tox,  1. - (ty * y_1 + toy),
            (tx + tw) * x_1 + tox,  1. - ((ty + th) * y_1 + toy),
            tx * x_1 + tox,         1. - ((ty + th) * y_1 + toy)]