[host] dxgi: fix RGB24 damage rect rounding bug

This commit is contained in:
Geoffrey McRae 2023-11-07 22:11:15 +11:00
parent ad13928c73
commit f8586fd063

View File

@ -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;
}