Thomas Faller : gdi32: Prevent unneeded operations by flag check.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Jun 4 09:32:02 CDT 2015
Module: wine
Branch: master
Commit: 9244cac3afe8723375d2e9e5f0d3ffaf30b751dc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9244cac3afe8723375d2e9e5f0d3ffaf30b751dc
Author: Thomas Faller <tfaller1 at gmx.de>
Date: Thu Jun 4 01:22:53 2015 +0200
gdi32: Prevent unneeded operations by flag check.
---
dlls/gdi32/font.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/gdi32/font.c b/dlls/gdi32/font.c
index 40ba7e7..9f0de0e 100644
--- a/dlls/gdi32/font.c
+++ b/dlls/gdi32/font.c
@@ -2255,7 +2255,7 @@ BOOL WINAPI ExtTextOutW( HDC hdc, INT x, INT y, UINT flags,
sinEsc = 0;
}
- if (lprect)
+ if (lprect && (flags & (ETO_OPAQUE | ETO_CLIPPED)))
{
rc = *lprect;
LPtoDP(hdc, (POINT*)&rc, 2);
More information about the wine-cvs
mailing list