mirror of https://github.com/mgba-emu/mgba.git
GB Video: Fix warning
This commit is contained in:
parent
cbc3be7571
commit
2adc03bcbd
|
@ -130,7 +130,7 @@ static void GBVideoSoftwareRendererDrawRange(struct GBVideoRenderer* renderer, i
|
|||
}
|
||||
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];
|
||||
|
|
Loading…
Reference in New Issue