[PATCH 5/6] riched20: Use PatBlt() instead of FillRect() to paint the background area.

Huw Davies huw at codeweavers.com
Mon Aug 19 04:01:50 CDT 2019


On Mon, Aug 19, 2019 at 09:44:52AM +0100, Huw Davies wrote:
> Signed-off-by: Huw Davies <huw at codeweavers.com>
> ---
>  dlls/riched20/editor.c | 18 +++++++++++-------
>  dlls/riched20/paint.c  | 27 ++++++++++++---------------
>  2 files changed, 23 insertions(+), 22 deletions(-)
> 
> diff --git a/dlls/riched20/paint.c b/dlls/riched20/paint.c
> index 94fe0516bd..fe27932719 100644
> --- a/dlls/riched20/paint.c
> +++ b/dlls/riched20/paint.c
> @@ -977,7 +976,7 @@ static void ME_DrawParagraph(ME_Context *c, ME_DisplayItem *paragraph)
>            rcAfterBrdr.left = rc.right + bounds.right;
>            rcAfterBrdr.right = c->rcView.right;
>            if (RectVisible(c->hDC, &rcAfterBrdr))
> -            FillRect(c->hDC, &rcAfterBrdr, c->editor->hbrBackground);
> +            PatBlt(c->hDC, rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top, PATCOPY);
>          }
>          if (me_debug)
>          {

I've just realised this is using the wrong rect.  I'll send in a new version.

Huw.



More information about the wine-devel mailing list