all repos — mgba @ 2ce017b555088fc84fa5e37f81762c5c2a6e5d92

mGBA Game Boy Advance Emulator

Fix WIN0H writing with overlapping values
Jeffrey Pfau jeffrey@endrift.com
Sun, 22 Sep 2013 03:00:43 -0700
commit

2ce017b555088fc84fa5e37f81762c5c2a6e5d92

parent

4523777beeb2e49a1e6314047f1a2ce8afa91479

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

jump to
M src/gba/renderers/video-software.csrc/gba/renderers/video-software.c

@@ -248,7 +248,7 @@ _updatePalettes(softwareRenderer);

break; case REG_WIN0H: softwareRenderer->win0H.packed = value; - if (softwareRenderer->win0H.start >= softwareRenderer->win0H.end || softwareRenderer->win0H.end > VIDEO_HORIZONTAL_PIXELS) { + if (softwareRenderer->win0H.start > softwareRenderer->win0H.end || softwareRenderer->win0H.end > VIDEO_HORIZONTAL_PIXELS) { softwareRenderer->win0H.end = VIDEO_HORIZONTAL_PIXELS; } if (softwareRenderer->win0H.start >= VIDEO_HORIZONTAL_PIXELS) {