Zhiyi Zhang : gdi32: Reselect font and pen when changing world transforms for enhanced metafiles.

Alexandre Julliard julliard at winehq.org
Tue Apr 20 16:27:44 CDT 2021


Module: wine
Branch: master
Commit: 3ebc7158818d6578a808b0b750683e0ce7e62f14
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=3ebc7158818d6578a808b0b750683e0ce7e62f14

Author: Zhiyi Zhang <zzhang at codeweavers.com>
Date:   Tue Apr 20 09:09:22 2021 +0100

gdi32: Reselect font and pen when changing world transforms for enhanced metafiles.

Reselect font and pen into enhanced metafile device contexts after world transform is changed so
that content can be drawn using the correct size. Also modifying the world transform for enhanced
metafiles doesn't generate EMR_SELECTOBJECT records according to winedump outputs.

Fix an issue that Tally may produce a print preview with a too large font or with a black side bar.

Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/gdi32/dc.c                      |  2 +-
 dlls/gdi32/enhmfdrv/dc.c             | 78 +++++++++++++++++++++++++++++++-----
 dlls/gdi32/enhmfdrv/enhmetafiledrv.h |  1 +
 dlls/gdi32/enhmfdrv/init.c           |  1 +
 dlls/gdi32/enhmfdrv/objects.c        |  2 +
 dlls/gdi32/tests/metafile.c          |  1 -
 6 files changed, 72 insertions(+), 13 deletions(-)

Diff:   https://source.winehq.org/git/wine.git/?a=commitdiff;h=3ebc7158818d6578a808b0b750683e0ce7e62f14



More information about the wine-cvs mailing list