Qt Software renderer: Use a simple XOR instead of increase and modulo 2.

This commit is contained in:
OBattler
2025-09-18 04:37:11 +02:00
parent 381a06a44c
commit 376dccf86d

View File

@@ -64,7 +64,7 @@ SoftwareRenderer::onBlit(int buf_idx, int x, int y, int w, int h)
auto origSource = source;
cur_image = buf_idx;
buf_usage[(buf_idx + 1) % 2].clear();
buf_usage[buf_idx ^ 1].clear();
source.setRect(x, y, w, h);