gdi32: Use graphics mode specified at the EMF creation time when playing EMR_EXTTEXTOUT record.

Alexander Kochetkov al.kochet at
Thu Feb 24 06:09:06 CST 2011

> +
> +        SetGraphicsMode(hdc, old_mode);
>        break;
>     }

Hi, Dmitry Timoshkov!

Needs to reselect font again after restore old_mode in case
pExtTextOutW-> iGraphicsMode != old_mode. Otherwise, the font will
remain with the wrong glyph orientation.
I can write a test demonstrating the problem.

Resect font is needed only if pExtTextOutW-> iGraphicsMode is
GM_COMPATIBLE. This is performance optimization for GM_ADVANCED.

Thank, you!

More information about the wine-devel mailing list