all repos — mgba @ 2adc03bcbd8c8c64b45087022d4b112be4ddbe19

mGBA Game Boy Advance Emulator

GB Video: Fix warning
Jeffrey Pfau jeffrey@endrift.com
Sun, 21 Feb 2016 12:00:23 -0800
commit

2adc03bcbd8c8c64b45087022d4b112be4ddbe19

parent

cbc3be7571f820c6cea1cd5eba21cbf13a5803c4

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

jump to
M src/gb/renderers/software.csrc/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];