gdi32: Prevent unneeded operations by flag check.

This commit is contained in:
Thomas Faller 2015-06-04 01:22:53 +02:00 committed by Alexandre Julliard
parent 688db4d273
commit 9244cac3af
1 changed files with 1 additions and 1 deletions

View File

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