mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[host] dxgi: fix RGB24 damage rect rounding bug
This commit is contained in:
parent
ad13928c73
commit
f8586fd063
@ -1453,7 +1453,7 @@ static CaptureResult dxgi_getFrame(FrameBuffer * frame, int frameIndex)
|
|||||||
int originalX = rect.x;
|
int originalX = rect.x;
|
||||||
int scaledX = originalX * 3 / 4;
|
int scaledX = originalX * 3 / 4;
|
||||||
rect.x = scaledX;
|
rect.x = scaledX;
|
||||||
rect.width = ((originalX + rect.width) * 3 / 4) - scaledX;
|
rect.width = (((originalX + rect.width) * 3 + 3) / 4) - scaledX;
|
||||||
|
|
||||||
scaledDamageRects[i] = rect;
|
scaledDamageRects[i] = rect;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user