mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-07-21 06:42:02 +00:00
[idd] rgb24: fix packed-texel damage endpoints
This commit is contained in:
@@ -114,9 +114,10 @@ ComPtr<ID3D12Resource> CRGB24Effect::Run(const ComPtr<ID3D12Device3>& device,
|
|||||||
|
|
||||||
for (RECT * rect = dirtyRects; rect < dirtyRects + *nbDirtyRects; ++rect)
|
for (RECT * rect = dirtyRects; rect < dirtyRects + *nbDirtyRects; ++rect)
|
||||||
{
|
{
|
||||||
unsigned width = rect->right - rect->left;
|
const LONG left = rect->left;
|
||||||
rect->left = (rect->left * 3) / 4;
|
const LONG right = rect->right;
|
||||||
rect->right = rect->left + (width * 3 + 3) / 4;
|
rect->left = (left * 3) / 4;
|
||||||
|
rect->right = (right * 3 + 3) / 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
return m_dst;
|
return m_dst;
|
||||||
|
|||||||
Reference in New Issue
Block a user