gdi32/enhmfdrv: Don't update document bounds in LineTo within a path.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
44f860daff
commit
c019c68b45
|
@ -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,6 +73,7 @@ BOOL EMFDRV_LineTo( PHYSDEV dev, INT x, INT y )
|
|||
bounds.right = max(x, pt.x);
|
||||
bounds.bottom = max(y, pt.y);
|
||||
|
||||
if(!physDev->path)
|
||||
EMFDRV_UpdateBBox( dev, &bounds );
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in New Issue