mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 00:41:36 +00:00
[0.4.13][GDI32] Use Gdi Flush for SetViewportOrgEx
Fixes offset in combo texts and menu highlights. Fixes CORE-16656 and regression CORE-16644, which appeared by 0.4.13-dev-209-gdc7f4f682f
No official release ever was affected fortunately. cherry picked from commit 0.4.14-dev-966-gc89e111c6a
This commit is contained in:
parent
05225f1d20
commit
99dde2aa60
|
@ -458,7 +458,7 @@ GetWindowOrgEx(
|
|||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
* @implemented
|
||||
*/
|
||||
BOOL
|
||||
WINAPI
|
||||
|
@ -525,7 +525,7 @@ SetViewportExtEx(
|
|||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
* @implemented
|
||||
*/
|
||||
BOOL
|
||||
WINAPI
|
||||
|
@ -577,7 +577,7 @@ SetWindowOrgEx(
|
|||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
* @implemented
|
||||
*/
|
||||
BOOL
|
||||
WINAPI
|
||||
|
@ -648,7 +648,7 @@ SetWindowExtEx(
|
|||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
* @implemented
|
||||
*/
|
||||
BOOL
|
||||
WINAPI
|
||||
|
@ -669,7 +669,16 @@ SetViewportOrgEx(
|
|||
/* 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;
|
||||
|
|
Loading…
Reference in a new issue