all repos — mgba @ f1a58c725457e7a64c7ebebbb272eead6f11f197

mGBA Game Boy Advance Emulator

Fix ObjAffineSet over multiple inputs
Jeffrey Pfau jeffrey@endrift.com
Wed, 23 Jul 2014 00:54:11 -0700
commit

f1a58c725457e7a64c7ebebbb272eead6f11f197

parent

c7f7d0f752cf6a58b9dacebc8b3dd5385b58833e

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/gba/gba-bios.csrc/gba/gba-bios.c

@@ -76,7 +76,7 @@ // [ 0 sy ] * [ sin(theta) cos(theta) ] = [ C D ]

sx = cpu->memory.load16(cpu, offset, 0) / 256.f; sy = cpu->memory.load16(cpu, offset + 2, 0) / 256.f; theta = (cpu->memory.loadU16(cpu, offset + 4, 0) >> 8) / 128.f * M_PI; - offset += 6; + offset += 8; // Rotation a = d = cosf(theta); b = c = sinf(theta);