Piotr Caban : gdi32: Use advanced graphics mode when setting world transform in PlayEnhMetaFileRecord.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Apr 21 09:47:18 CDT 2016
Module: wine
Branch: master
Commit: 69e37ff05e99873d0d55e0b64e66c524a5d23f57
URL: http://source.winehq.org/git/wine.git/?a=commit;h=69e37ff05e99873d0d55e0b64e66c524a5d23f57
Author: Piotr Caban <piotr at codeweavers.com>
Date: Wed Apr 20 18:35:10 2016 +0200
gdi32: Use advanced graphics mode when setting world transform in PlayEnhMetaFileRecord.
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/gdi32/enhmetafile.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/gdi32/enhmetafile.c b/dlls/gdi32/enhmetafile.c
index 995997c..32d5e10 100644
--- a/dlls/gdi32/enhmetafile.c
+++ b/dlls/gdi32/enhmetafile.c
@@ -1820,6 +1820,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
HBITMAP hBmp = 0, hBmpOld = 0;
const BITMAPINFO *pbi = (const BITMAPINFO *)((const BYTE *)mr + pBitBlt->offBmiSrc);
+ SetGraphicsMode(hdcSrc, GM_ADVANCED);
SetWorldTransform(hdcSrc, &pBitBlt->xformSrc);
hBrush = CreateSolidBrush(pBitBlt->crBkColorSrc);
@@ -1862,6 +1863,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
HBITMAP hBmp = 0, hBmpOld = 0;
const BITMAPINFO *pbi = (const BITMAPINFO *)((const BYTE *)mr + pStretchBlt->offBmiSrc);
+ SetGraphicsMode(hdcSrc, GM_ADVANCED);
SetWorldTransform(hdcSrc, &pStretchBlt->xformSrc);
hBrush = CreateSolidBrush(pStretchBlt->crBkColorSrc);
@@ -1904,6 +1906,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
const BITMAPINFO *pbi = (const BITMAPINFO *)((const BYTE *)mr + pAlphaBlend->offBmiSrc);
void *bits;
+ SetGraphicsMode(hdcSrc, GM_ADVANCED);
SetWorldTransform(hdcSrc, &pAlphaBlend->xformSrc);
hBmp = CreateDIBSection(hdc, pbi, pAlphaBlend->iUsageSrc, &bits, NULL, 0);
@@ -1929,6 +1932,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
HBITMAP hBmp, hBmpOld, hBmpMask;
const BITMAPINFO *pbi;
+ SetGraphicsMode(hdcSrc, GM_ADVANCED);
SetWorldTransform(hdcSrc, &pMaskBlt->xformSrc);
hBrush = CreateSolidBrush(pMaskBlt->crBkColorSrc);
@@ -1977,6 +1981,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
const BITMAPINFO *pbi;
POINT pts[3];
+ SetGraphicsMode(hdcSrc, GM_ADVANCED);
SetWorldTransform(hdcSrc, &pPlgBlt->xformSrc);
pts[0].x = pPlgBlt->aptlDest[0].x; pts[0].y = pPlgBlt->aptlDest[0].y;
More information about the wine-cvs
mailing list