Piotr Caban : gdi32/enhmfdrv: Don' t update document bounds in LineTo within a path.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Apr 29 11:05:58 CDT 2016
Module: wine
Branch: master
Commit: c019c68b451fae067d7348efd362817ba5a0fe47
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c019c68b451fae067d7348efd362817ba5a0fe47
Author: Piotr Caban <piotr at codeweavers.com>
Date: Thu Apr 28 18:47:43 2016 +0200
gdi32/enhmfdrv: Don't update document bounds in LineTo within a path.
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/enhmfdrv/graphics.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/gdi32/enhmfdrv/graphics.c b/dlls/gdi32/enhmfdrv/graphics.c
index 0484ebf..a5918a9 100644
--- a/dlls/gdi32/enhmfdrv/graphics.c
+++ b/dlls/gdi32/enhmfdrv/graphics.c
@@ -53,6 +53,7 @@ BOOL EMFDRV_MoveTo(PHYSDEV dev, INT x, INT y)
*/
BOOL EMFDRV_LineTo( PHYSDEV dev, INT x, INT y )
{
+ EMFDRV_PDEVICE *physDev = (EMFDRV_PDEVICE*) dev;
POINT pt;
EMRLINETO emr;
RECTL bounds;
@@ -72,7 +73,8 @@ BOOL EMFDRV_LineTo( PHYSDEV dev, INT x, INT y )
bounds.right = max(x, pt.x);
bounds.bottom = max(y, pt.y);
- EMFDRV_UpdateBBox( dev, &bounds );
+ if(!physDev->path)
+ EMFDRV_UpdateBBox( dev, &bounds );
return TRUE;
}
More information about the wine-cvs
mailing list