[idd] rgb24: fix packed-texel damage endpoints

This commit is contained in:
Geoffrey McRae
2026-07-19 01:02:08 +10:00
parent 86824a0010
commit d8dee8806b

View File

@@ -114,9 +114,10 @@ ComPtr<ID3D12Resource> CRGB24Effect::Run(const ComPtr<ID3D12Device3>& device,
for (RECT * rect = dirtyRects; rect < dirtyRects + *nbDirtyRects; ++rect)
{
unsigned width = rect->right - rect->left;
rect->left = (rect->left * 3) / 4;
rect->right = rect->left + (width * 3 + 3) / 4;
const LONG left = rect->left;
const LONG right = rect->right;
rect->left = (left * 3) / 4;
rect->right = (right * 3 + 3) / 4;
}
return m_dst;