[PATCH 3/4] riched20: Don't special case the non-stretching case.
Huw Davies
huw at codeweavers.com
Thu Sep 14 06:51:03 CDT 2017
Signed-off-by: Huw Davies <huw at codeweavers.com>
---
dlls/riched20/richole.c | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)
diff --git a/dlls/riched20/richole.c b/dlls/riched20/richole.c
index 335b24489b..0a8a32a69a 100644
--- a/dlls/riched20/richole.c
+++ b/dlls/riched20/richole.c
@@ -5339,16 +5339,9 @@ void ME_DrawOLE(ME_Context *c, int x, int y, ME_Run *run, BOOL selected)
sz.cx = MulDiv(sz.cx, c->editor->nZoomNumerator, c->editor->nZoomDenominator);
sz.cy = MulDiv(sz.cy, c->editor->nZoomNumerator, c->editor->nZoomDenominator);
}
- if (sz.cx == dibsect.dsBm.bmWidth && sz.cy == dibsect.dsBm.bmHeight)
- {
- BitBlt(c->hDC, x, y - sz.cy,
- dibsect.dsBm.bmWidth, dibsect.dsBm.bmHeight,
- hMemDC, 0, 0, SRCCOPY);
- } else {
- StretchBlt(c->hDC, x, y - sz.cy, sz.cx, sz.cy,
- hMemDC, 0, 0, dibsect.dsBm.bmWidth,
- dibsect.dsBm.bmHeight, SRCCOPY);
- }
+ StretchBlt(c->hDC, x, y - sz.cy, sz.cx, sz.cy,
+ hMemDC, 0, 0, dibsect.dsBm.bmWidth, dibsect.dsBm.bmHeight, SRCCOPY);
+
SelectObject(hMemDC, old_bm);
DeleteDC(hMemDC);
break;
--
2.12.0
More information about the wine-patches
mailing list