Eric Pouech : richedit: Fixed typo in bitmap scaling (for OLE objects).

Alexandre Julliard julliard at winehq.org
Mon Mar 17 10:46:32 CDT 2008


Module: wine
Branch: master
Commit: 513fcfe48ffc959fe9c1ed0cb675572fc2480c7d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=513fcfe48ffc959fe9c1ed0cb675572fc2480c7d

Author: Eric Pouech <eric.pouech at orange.fr>
Date:   Sun Mar 16 21:46:20 2008 +0100

richedit: Fixed typo in bitmap scaling (for OLE objects).

---

 dlls/riched20/richole.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/riched20/richole.c b/dlls/riched20/richole.c
index 1509d4e..3d5e42f 100644
--- a/dlls/riched20/richole.c
+++ b/dlls/riched20/richole.c
@@ -682,9 +682,9 @@ void ME_DrawOLE(ME_Context *c, int x, int y, ME_Run *run,
       }
       else
       {
-        sz.cy = MulDiv(dibsect.dsBm.bmWidth,
+        sz.cx = MulDiv(dibsect.dsBm.bmWidth,
                        c->editor->nZoomNumerator, c->editor->nZoomDenominator);
-        sz.cx = MulDiv(dibsect.dsBm.bmHeight,
+        sz.cy = MulDiv(dibsect.dsBm.bmHeight,
                        c->editor->nZoomNumerator, c->editor->nZoomDenominator);
       }
       StretchBlt(c->hDC, x, y - sz.cy, sz.cx, sz.cy,




More information about the wine-cvs mailing list