Huw Davies : riched20: Don't force an update when styles are changed.

Alexandre Julliard julliard at winehq.org
Thu Aug 15 14:50:47 CDT 2019


Module: wine
Branch: master
Commit: 04040d0aca34a3f5fec049f1c36e4e0d42a8d525
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=04040d0aca34a3f5fec049f1c36e4e0d42a8d525

Author: Huw Davies <huw at codeweavers.com>
Date:   Thu Aug 15 11:06:36 2019 +0100

riched20: Don't force an update when styles are changed.

The appropriate region has already been invalidated and will be
repainted in due course.

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/riched20/editor.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index d0034fc..61f7a0e 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -3578,7 +3578,6 @@ static LRESULT handle_EM_SETCHARFORMAT( ME_TextEditor *editor, WPARAM flags, con
     {
         ME_WrapMarkedParagraphs( editor );
         ME_UpdateScrollBar( editor );
-        ME_Repaint( editor );
     }
     return 1;
 }
@@ -3730,7 +3729,6 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
       ME_CommitUndo(editor);
       ME_WrapMarkedParagraphs(editor);
       ME_UpdateScrollBar(editor);
-      ME_Repaint(editor);
 
       return TRUE;
   }
@@ -4005,7 +4003,6 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
     BOOL result = ME_SetSelectionParaFormat(editor, (PARAFORMAT2 *)lParam);
     ME_WrapMarkedParagraphs(editor);
     ME_UpdateScrollBar(editor);
-    ME_Repaint(editor);
     ME_CommitUndo(editor);
     return result;
   }




More information about the wine-cvs mailing list