From aa25b1f886936e048c65c875e3ba370a2fa5300e Mon Sep 17 00:00:00 2001 From: Lionel Ulmer Date: Mon, 9 Aug 2004 18:50:35 +0000 Subject: [PATCH] Do not initialize variables before going into the Render short-cut. --- dlls/x11drv/text.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/x11drv/text.c b/dlls/x11drv/text.c index 8832a513f02..48e0159cc55 100644 --- a/dlls/x11drv/text.c +++ b/dlls/x11drv/text.c @@ -57,14 +57,17 @@ X11DRV_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flags, BOOL result = TRUE; HRGN saved_region = 0; POINT pt; - UINT align = GetTextAlign( physDev->hdc ); - INT charExtra = GetTextCharacterExtra( physDev->hdc ); + UINT align; + INT charExtra; if(physDev->has_gdi_font) return X11DRV_XRender_ExtTextOut(physDev, x, y, flags, lprect, wstr, count, lpDx, breakExtra); if (!X11DRV_SetupGCForText( physDev )) return TRUE; + align = GetTextAlign( physDev->hdc ); + charExtra = GetTextCharacterExtra( physDev->hdc ); + pfo = XFONT_GetFontObject( physDev->font ); font = pfo->fs;