From 6a3175032d341f95ea4d499f4191f44fb01927b0 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Wed, 24 Aug 2005 10:56:49 +0000 Subject: [PATCH] Use the correct rectangle for ETO_OPAQUE - spotted by James Hawkins. --- dlls/x11drv/text.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/x11drv/text.c b/dlls/x11drv/text.c index dce5d4ccfe9..f8622eb12b2 100644 --- a/dlls/x11drv/text.c +++ b/dlls/x11drv/text.c @@ -47,7 +47,6 @@ X11DRV_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flags, unsigned int i; fontObject* pfo; XFontStruct* font; - RECT rect; BOOL rotated = FALSE; XChar2b *str2b = NULL; BOOL dibUpdateFlag = FALSE; @@ -82,8 +81,8 @@ X11DRV_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flags, wine_tsx11_lock(); XSetForeground( gdi_display, physDev->gc, physDev->backgroundPixel ); XFillRectangle( gdi_display, physDev->drawable, physDev->gc, - physDev->org.x + rect.left, physDev->org.y + rect.top, - rect.right-rect.left, rect.bottom-rect.top ); + physDev->org.x + lprect->left, physDev->org.y + lprect->top, + lprect->right - lprect->left, lprect->bottom - lprect->top ); wine_tsx11_unlock(); } if (!count) goto END; /* Nothing more to do */