Piotr Caban : gdi32/enhmfdrv: Don' t update document bounds in LineTo within a path.
Module: wine Branch: master Commit: c019c68b451fae067d7348efd362817ba5a0fe47 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c019c68b451fae067d7348efd3... Author: Piotr Caban <piotr(a)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(a)codeweavers.com> Signed-off-by: Huw Davies <huw(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)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; }
participants (1)
-
Alexandre Julliard