Fixes offset in combo texts and menu highlights. See CORE-16644 & CORE-16656.
/* Do not set LastError here! */
return FALSE;
}
/* Do not set LastError here! */
return FALSE;
}
+ //// HACK : XP+ doesn't do this. See CORE-16656 & CORE-16644.
+ if (NtCurrentTeb()->GdiTebBatch.HDC == hdc)
+ {
+ if (pdcattr->ulDirty_ & DC_MODE_DIRTY)
+ {
+ NtGdiFlush();
+ pdcattr->ulDirty_ &= ~DC_MODE_DIRTY;
+ }
+ }
+ ////
if (lpPoint)
{
lpPoint->x = pdcattr->ptlViewportOrg.x;
if (lpPoint)
{
lpPoint->x = pdcattr->ptlViewportOrg.x;