[idd] skip copies for static frames

Treat IddCx's single empty dirty rectangle as no image update instead
of promoting it to full damage.

Preserve pending damage and format changes, and fall back to full damage
when legacy move regions are present.
This commit is contained in:
Geoffrey McRae
2026-08-03 14:43:30 +10:00
parent 4f39270736
commit c8e4b97c3c
3 changed files with 63 additions and 20 deletions

View File

@@ -154,6 +154,7 @@ void CInteropResource::SetDirtyRects(const RECT * dirtyRects, unsigned nbDirtyRe
return;
}
memcpy(m_dirtyRects, dirtyRects, nbDirtyRects * sizeof(*m_dirtyRects));
if (nbDirtyRects)
memcpy(m_dirtyRects, dirtyRects, nbDirtyRects * sizeof(*m_dirtyRects));
m_nbDirtyRects = nbDirtyRects;
}