# HG changeset patch # User Emmanuel Gil Peyrot # Date 1323260582 -3600 # Node ID ab6e6909ce04fc848a23bc94ac453c0c42610209 # Parent 136d29ffe3c20a17c972f1962814fd2ed1c81fae Don’t scale texture instead of shifting it, fix ANM’s 28th opcode. diff --git a/pytouhou/ui/sprite.pyx b/pytouhou/ui/sprite.pyx --- 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)]