Author: fireball
Date: Sun Aug 2 20:18:58 2009
New Revision: 42343
URL:
http://svn.reactos.org/svn/reactos?rev=42343&view=rev
Log:
- Remove unnecessary hack from RosDrv_GetTextMetrics. Text output now is nearly perfect.
See arwinss issue nr. 6.
Modified:
branches/arwinss/reactos/dll/win32/winent.drv/gdidrv.c
Modified: branches/arwinss/reactos/dll/win32/winent.drv/gdidrv.c
URL:
http://svn.reactos.org/svn/reactos/branches/arwinss/reactos/dll/win32/winen…
==============================================================================
--- branches/arwinss/reactos/dll/win32/winent.drv/gdidrv.c [iso-8859-1] (original)
+++ branches/arwinss/reactos/dll/win32/winent.drv/gdidrv.c [iso-8859-1] Sun Aug 2
20:18:58 2009
@@ -313,16 +313,8 @@
BOOL CDECL RosDrv_GetTextMetrics(NTDRV_PDEVICE *physDev, TEXTMETRICW *metrics)
{
- UNIMPLEMENTED;
-
- // HACK
- metrics->tmMaxCharWidth = 9;
- metrics->tmHeight = 18;
- metrics->tmExternalLeading = 0;
-
-
- return TRUE;
- //return FALSE;
+ /* Let GDI font engine do the work */
+ return FALSE;
}
BOOL CDECL RosDrv_LineTo( NTDRV_PDEVICE *physDev, INT x, INT y )
@@ -482,8 +474,7 @@
/* We don't have a kernelmode font engine */
if (gdiFont == 0)
{
- UNIMPLEMENTED;
- //RosGdiSelectFont(physDev->hKernelDC, hfont, gdiFont);
+ /*RosGdiSelectFont(physDev->hKernelDC, hfont, gdiFont);*/
}
else
{
@@ -612,10 +603,6 @@
return;
}
- // FIXME: What to do with origin?
- //XSetClipRectangles( gdi_display, physDev->gc, physDev->dc_rect.left,
physDev->dc_rect.top,
- // (XRectangle *)data->Buffer, data->rdh.nCount, YXBanded
);
-
/* Set clipping */
RosGdiSetDeviceClipping(physDev->hKernelDC, data->rdh.nCount, (RECTL
*)data->Buffer, (RECTL *)&data->rdh.rcBound);