Fix WIN0H writing with overlapping values
Jeffrey Pfau jeffrey@endrift.com
Sun, 22 Sep 2013 03:00:43 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
M
src/gba/renderers/video-software.c
→
src/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) {