Author: khornicek
Date: Sun Aug 2 15:37:22 2009
New Revision: 42336
URL:
http://svn.reactos.org/svn/reactos?rev=42336&view=rev
Log:
- add support for ETO_OPAQUE
Modified:
branches/arwinss/reactos/dll/win32/winent.drv/font.c
Modified: branches/arwinss/reactos/dll/win32/winent.drv/font.c
URL:
http://svn.reactos.org/svn/reactos/branches/arwinss/reactos/dll/win32/winen…
==============================================================================
--- branches/arwinss/reactos/dll/win32/winent.drv/font.c [iso-8859-1] (original)
+++ branches/arwinss/reactos/dll/win32/winent.drv/font.c [iso-8859-1] Sun Aug 2 15:37:22
2009
@@ -622,16 +622,21 @@
}
#endif
- if(flags & ETO_OPAQUE)
+ if((flags & ETO_OPAQUE) && lprect)
{
-#if 0
- wine_tsx11_lock();
- XSetForeground( gdi_display, physDev->gc, backgroundPixel );
- XFillRectangle( gdi_display, physDev->drawable, physDev->gc,
- physDev->dc_rect.left + lprect->left, physDev->dc_rect.top +
lprect->top,
- lprect->right - lprect->left, lprect->bottom - lprect->top );
- wine_tsx11_unlock();
-#endif
+ HBRUSH brush, oldBrush;
+ HPEN pen, oldPen;
+
+ brush = CreateSolidBrush(GetBkColor(physDev->hUserDC));
+ oldBrush = SelectObject(physDev->hUserDC, brush);
+
+ pen = CreatePen(PS_NULL, 0, 0);
+ oldPen = SelectObject(physDev->hUserDC, pen);
+
+ RosGdiRectangle(physDev->hKernelDC, lprect);
+
+ DeleteObject(SelectObject(physDev->hUserDC, oldBrush));
+ DeleteObject(SelectObject(physDev->hUserDC, oldPen));
}
if(count == 0)