From e5345825558973f47c6300800e85e48ab2953261 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Thu, 14 Sep 2017 12:51:03 +0100 Subject: [PATCH] riched20: Don't special case the non-stretching case. Signed-off-by: Huw Davies Signed-off-by: Alexandre Julliard --- 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 335b24489bd..0a8a32a69a2 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;