[host] dxgi: fix RGB24 damage rect rounding bug

This commit is contained in:
Geoffrey McRae committed 2023-11-10 06:28:05 +11:00
1 parent ad13928c73
commit f8586fd063
1 file changed
+1 -1
@@ -1453,7 +1453,7 @@ static CaptureResult dxgi_getFrame(FrameBuffer * frame, int frameIndex)
int originalX = rect.x;
int scaledX = originalX * 3 / 4;
rect.x = scaledX;
rect.width = ((originalX + rect.width) * 3 / 4) - scaledX;
rect.width = (((originalX + rect.width) * 3 + 3) / 4) - scaledX;
scaledDamageRects[i] = rect;
}