Mercurial > touhou
diff pytouhou/ui/sprite.pyx @ 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 | ee6dfd14a785 |
children | 741860192b56 |
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)]