mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 13:52:57 +00:00
[host] dxgi: fix RGB24 damage rect rounding bug
This commit is contained in:
parent
ad13928c73
commit
f8586fd063
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue