[PATCH] winex11.drv: Do not include XFORM.eDx and eDy into font hashing/caching
Marcus Meissner
marcus at jet.franken.de
Mon Nov 29 03:17:26 CST 2010
Hi,
after discussion on list, makes Steam window scrolling faster.
(Our code is only using the XFORMS Matrix, but not the offset.)
Ciao, Marcus
---
dlls/winex11.drv/xrender.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/winex11.drv/xrender.c b/dlls/winex11.drv/xrender.c
index 4f900b2..f0ec1b1 100644
--- a/dlls/winex11.drv/xrender.c
+++ b/dlls/winex11.drv/xrender.c
@@ -1067,6 +1067,9 @@ BOOL X11DRV_XRender_SelectFont(X11DRV_PDEVICE *physDev, HFONT hfont)
lfsz.devsize.cx = X11DRV_XWStoDS( physDev, lfsz.lf.lfWidth );
lfsz.devsize.cy = X11DRV_YWStoDS( physDev, lfsz.lf.lfHeight );
GetWorldTransform( physDev->hdc, &lfsz.xform );
+ /* Not used fields, would break hashing */
+ lfsz.xform.eDx = lfsz.xform.eDy = 0;
+
lfsz_calc_hash(&lfsz);
info = get_xrender_info(physDev);
--
1.7.1
More information about the wine-patches
mailing list