oleaut32: slight correction to EMF rendering

Evan Stade estade at gmail.com
Wed Aug 1 19:55:27 CDT 2007


Hi,

changelog:
* pack RECT structure with bottom/right coordinates, not width/height
of rectangle

 dlls/oleaut32/olepicture.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

-- 
Evan Stade
-------------- next part --------------
diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c
index e1c61b2..a7dc158 100644
--- a/dlls/oleaut32/olepicture.c
+++ b/dlls/oleaut32/olepicture.c
@@ -683,7 +683,7 @@ static HRESULT WINAPI OLEPictureImpl_Ren
 
   case PICTYPE_ENHMETAFILE:
   {
-    RECT rc = { x, y, cx, cy };
+    RECT rc = { x, y, x + cx, y + cy };
     PlayEnhMetaFile(hdc, This->desc.u.emf.hemf, &rc);
     break;
   }
-- 
1.4.1


More information about the wine-patches mailing list