[X11DRV] Little optimisation in the ExtTextOut function
Lionel Ulmer
lionel.ulmer at free.fr
Sun Aug 8 11:42:19 CDT 2004
Changelog:
- do not initialize variables before going into the Render short-cut
--
Lionel Ulmer - http://www.bbrox.org/
-------------- next part --------------
Index: dlls/x11drv/text.c
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/text.c,v
retrieving revision 1.11
diff -u -r1.11 text.c
--- dlls/x11drv/text.c 4 Mar 2004 04:05:04 -0000 1.11
+++ dlls/x11drv/text.c 8 Aug 2004 16:38:24 -0000
@@ -57,14 +57,17 @@
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;
More information about the wine-patches
mailing list