Commit aa25b1f8 authored by Lionel Ulmer's avatar Lionel Ulmer Committed by Alexandre Julliard

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

parent 1e268017
...@@ -57,14 +57,17 @@ X11DRV_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flags, ...@@ -57,14 +57,17 @@ X11DRV_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flags,
BOOL result = TRUE; BOOL result = TRUE;
HRGN saved_region = 0; HRGN saved_region = 0;
POINT pt; POINT pt;
UINT align = GetTextAlign( physDev->hdc ); UINT align;
INT charExtra = GetTextCharacterExtra( physDev->hdc ); INT charExtra;
if(physDev->has_gdi_font) if(physDev->has_gdi_font)
return X11DRV_XRender_ExtTextOut(physDev, x, y, flags, lprect, wstr, count, lpDx, breakExtra); return X11DRV_XRender_ExtTextOut(physDev, x, y, flags, lprect, wstr, count, lpDx, breakExtra);
if (!X11DRV_SetupGCForText( physDev )) return TRUE; if (!X11DRV_SetupGCForText( physDev )) return TRUE;
align = GetTextAlign( physDev->hdc );
charExtra = GetTextCharacterExtra( physDev->hdc );
pfo = XFONT_GetFontObject( physDev->font ); pfo = XFONT_GetFontObject( physDev->font );
font = pfo->fs; font = pfo->fs;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment