Commit b364c0ea authored by Alex Henrie's avatar Alex Henrie Committed by Michael Stefaniuc

riched20: Don't call UpdateWindow after setting the background color.

Signed-off-by: 's avatarAlex Henrie <alexhenrie24@gmail.com> Signed-off-by: 's avatarHuw Davies <huw@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org> (cherry picked from commit e60b2766) Conflicts: dlls/riched20/tests/editor.c Signed-off-by: 's avatarMichael Stefaniuc <mstefani@winehq.org>
parent f131e9f2
......@@ -3664,7 +3664,6 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
editor->hbrBackground = CreateSolidBrush(editor->rgbBackColor);
}
ITextHost_TxInvalidateRect(editor->texthost, NULL, TRUE);
ITextHost_TxViewChange(editor->texthost, TRUE);
return lColor;
}
case EM_GETMODIFY:
......
......@@ -8153,6 +8153,18 @@ static void test_alignment_style(void)
DestroyWindow(richedit);
}
static void test_background(void)
{
HWND hwndRichEdit = new_richedit(NULL);
/* set the background color to black */
ValidateRect(hwndRichEdit, NULL);
SendMessageA(hwndRichEdit, EM_SETBKGNDCOLOR, FALSE, RGB(0, 0, 0));
ok(GetUpdateRect(hwndRichEdit, NULL, FALSE), "Update rectangle is empty!\n");
DestroyWindow(hwndRichEdit);
}
START_TEST( editor )
{
BOOL ret;
......@@ -8220,6 +8232,7 @@ START_TEST( editor )
test_EM_SETREADONLY();
test_EM_SETFONTSIZE();
test_alignment_style();
test_background();
/* Set the environment variable WINETEST_RICHED20 to keep windows
* responsive and open for 30 seconds. This is useful for debugging.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment