Author: tkreuzer
Date: Fri Apr 23 00:28:49 2010
New Revision: 46998
URL:
http://svn.reactos.org/svn/reactos?rev=46998&view=rev
Log:
Disable gdi batch for SelectObject with fonts. Fixes font regression.
Modified:
trunk/reactos/dll/win32/gdi32/objects/dc.c
Modified: trunk/reactos/dll/win32/gdi32/objects/dc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/dc…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/dc.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/gdi32/objects/dc.c [iso-8859-1] Fri Apr 23 00:28:49 2010
@@ -1540,7 +1540,7 @@
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 @@
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 @@
if (pTeb->GdiBatchCount >= GDI_BatchLimit) NtGdiFlush();
return hOldObj;
}
+#endif
// default for select object font
return NtGdiSelectFont(hDC, hGdiObj);