mirror of
https://github.com/86Box/86Box.git
synced 2026-02-22 01:25:33 -07:00
Qt Software renderer: Use a simple XOR instead of increase and modulo 2.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user