Commit 9244cac3 authored by Thomas Faller's avatar Thomas Faller Committed by Alexandre Julliard

gdi32: Prevent unneeded operations by flag check.

parent 688db4d2
......@@ -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);
......
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