Author: khornicek Date: Wed Jul 22 13:24:35 2009 New Revision: 42139
URL: http://svn.reactos.org/svn/reactos?rev=42139&view=rev Log: - draw text with the foreground color
Modified: branches/arwinss/reactos/subsystems/win32/win32k/gre/font.c
Modified: branches/arwinss/reactos/subsystems/win32/win32k/gre/font.c URL: http://svn.reactos.org/svn/reactos/branches/arwinss/reactos/subsystems/win32... ============================================================================== --- branches/arwinss/reactos/subsystems/win32/win32k/gre/font.c [iso-8859-1] (original) +++ branches/arwinss/reactos/subsystems/win32/win32k/gre/font.c [iso-8859-1] Wed Jul 22 13:24:35 2009 @@ -26,8 +26,11 @@ int w; int xspan, lenspan; RECTL rcBounds; - - DPRINT("%d, %d\n", x, y); + BRUSHOBJ textBrush; + + RtlZeroMemory(&textBrush, sizeof(textBrush)); + textBrush.iSolidColor = physDev->crForegroundClr; + x -= gi->x; y -= gi->y; while (height--) @@ -62,7 +65,7 @@ RECTL_vOffsetRect(&rcBounds, physDev->rcVport.left, physDev->rcVport.top); GreLineTo(&physDev->pBitmap->SurfObj, NULL, - &physDev->pLineBrush->BrushObj, + &textBrush, xspan + physDev->rcVport.left, y + physDev->rcVport.top, xspan + lenspan + physDev->rcVport.left,