Module: wine Branch: master Commit: 872feb47c4dbcf342e7017800535ccd5f9beba44 URL: http://source.winehq.org/git/wine.git/?a=commit;h=872feb47c4dbcf342e70178005...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Nov 11 13:07:10 2009 +0100
gdi32: Don't update the metafile bounding box in ExtTextOut if there's no rectangle.
---
dlls/gdi32/enhmfdrv/graphics.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/gdi32/enhmfdrv/graphics.c b/dlls/gdi32/enhmfdrv/graphics.c index f0630d2..9c9cf6b 100644 --- a/dlls/gdi32/enhmfdrv/graphics.c +++ b/dlls/gdi32/enhmfdrv/graphics.c @@ -826,11 +826,10 @@ BOOL CDECL EMFDRV_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags, pemr->rclBounds.bottom = y + textHeight + 1; } } + EMFDRV_UpdateBBox( dev, &pemr->rclBounds );
no_bounds: ret = EMFDRV_WriteRecord( dev, &pemr->emr ); - if(ret) - EMFDRV_UpdateBBox( dev, &pemr->rclBounds ); HeapFree( GetProcessHeap(), 0, pemr ); return ret; }