"Mikolaj Zalewski" mikolajz@google.com writes:
Is there something wrong with this patch?
You should use IntersectClipRect or ExtSelectClipRgn to avoid intermediate copies. Also GetClipRgn doesn't return a region code so checking it against NULLREGION is wrong.