Do not initialize variables before going into the Render short-cut.

This commit is contained in:
Lionel Ulmer 2004-08-09 18:50:35 +00:00 committed by Alexandre Julliard
parent 1e268017d1
commit aa25b1f886

View File

@ -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;