Adjust scaling/rotation state for backgrounds regardless of if they were actually drawn
Jeffrey Pfau jeffrey@endrift.com
Tue, 15 Oct 2013 22:58:47 -0700
1 files changed,
4 insertions(+),
4 deletions(-)
M
src/gba/renderers/video-software.c
→
src/gba/renderers/video-software.c
@@ -597,8 +597,6 @@ case 5:
_drawBackgroundMode5(renderer, &renderer->bg[2], y); break; } - renderer->bg[2].sx += renderer->bg[2].dmx; - renderer->bg[2].sy += renderer->bg[2].dmy; } if (TEST_LAYER_ENABLED(3)) { switch (renderer->dispcnt.mode) {@@ -609,11 +607,13 @@ case 2:
_drawBackgroundMode2(renderer, &renderer->bg[3], y); break; } - renderer->bg[3].sx += renderer->bg[3].dmx; - renderer->bg[3].sy += renderer->bg[3].dmy; } } } + renderer->bg[2].sx += renderer->bg[2].dmx; + renderer->bg[2].sy += renderer->bg[2].dmy; + renderer->bg[3].sx += renderer->bg[3].dmx; + renderer->bg[3].sy += renderer->bg[3].dmy; } static void _composite(struct GBAVideoSoftwareRenderer* renderer, int offset, uint32_t color, uint32_t current) {