GB Video: Fix warning
Jeffrey Pfau jeffrey@endrift.com
Sun, 21 Feb 2016 12:00:23 -0800
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gb/renderers/software.c
→
src/gb/renderers/software.c
@@ -130,7 +130,7 @@ }
} color_t* row = &softwareRenderer->outputBuffer[softwareRenderer->outputBufferStride * y]; int x; - for (x = startX; x < endX & ~7; x += 8) { + for (x = startX; x < (endX & ~7); x += 8) { row[x] = softwareRenderer->palette[softwareRenderer->row[x] & 0x7F]; row[x + 1] = softwareRenderer->palette[softwareRenderer->row[x + 1] & 0x7F]; row[x + 2] = softwareRenderer->palette[softwareRenderer->row[x + 2] & 0x7F];