mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
Disable gdi batch for SelectObject with fonts. Fixes font regression.
svn path=/trunk/; revision=46998
This commit is contained in:
parent
1e1d4a34ac
commit
14347c75ad
1 changed files with 3 additions and 1 deletions
|
@ -1540,7 +1540,7 @@ SelectObject(HDC hDC,
|
|||
PDC_ATTR pDc_Attr;
|
||||
HGDIOBJ hOldObj = NULL;
|
||||
UINT uType;
|
||||
PTEB pTeb;
|
||||
// PTEB pTeb;
|
||||
|
||||
if(!GdiGetHandleUserData(hDC, GDI_OBJECT_TYPE_DC, (PVOID)&pDc_Attr))
|
||||
{
|
||||
|
@ -1582,6 +1582,7 @@ SelectObject(HDC hDC,
|
|||
case GDI_OBJECT_TYPE_FONT:
|
||||
hOldObj = pDc_Attr->hlfntNew;
|
||||
if (hOldObj == hGdiObj) return hOldObj;
|
||||
#if 0
|
||||
pDc_Attr->ulDirty_ &= ~SLOW_WIDTHS;
|
||||
pDc_Attr->ulDirty_ |= DIRTY_CHARSET;
|
||||
pDc_Attr->hlfntNew = hGdiObj;
|
||||
|
@ -1603,6 +1604,7 @@ SelectObject(HDC hDC,
|
|||
if (pTeb->GdiBatchCount >= GDI_BatchLimit) NtGdiFlush();
|
||||
return hOldObj;
|
||||
}
|
||||
#endif
|
||||
// default for select object font
|
||||
return NtGdiSelectFont(hDC, hGdiObj);
|
||||
|
||||
|
|
Loading…
Reference in a new issue