Commit 6c9edce1 authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

wordpad: Reduce unnecessary flicker from extra background erasing.

parent dd789d50
...@@ -781,7 +781,7 @@ static void update_scaled_preview(HWND hMainWnd) ...@@ -781,7 +781,7 @@ static void update_scaled_preview(HWND hMainWnd)
!is_last_preview_page(preview.page)); !is_last_preview_page(preview.page));
} }
InvalidateRect(hwndPreview, NULL, TRUE); InvalidateRect(hwndPreview, NULL, FALSE);
DeleteDC(fr.hdcTarget); DeleteDC(fr.hdcTarget);
} }
......
...@@ -2701,7 +2701,7 @@ int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hOldInstance, LPSTR szCmdPar ...@@ -2701,7 +2701,7 @@ int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hOldInstance, LPSTR szCmdPar
hAccel = LoadAcceleratorsW(hInstance, wszAccelTable); hAccel = LoadAcceleratorsW(hInstance, wszAccelTable);
wc.cbSize = sizeof(wc); wc.cbSize = sizeof(wc);
wc.style = CS_HREDRAW | CS_VREDRAW; wc.style = 0;
wc.lpfnWndProc = WndProc; wc.lpfnWndProc = WndProc;
wc.cbClsExtra = 0; wc.cbClsExtra = 0;
wc.cbWndExtra = 4; wc.cbWndExtra = 4;
...@@ -2715,7 +2715,7 @@ int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hOldInstance, LPSTR szCmdPar ...@@ -2715,7 +2715,7 @@ int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hOldInstance, LPSTR szCmdPar
wc.lpszClassName = wszMainWndClass; wc.lpszClassName = wszMainWndClass;
RegisterClassExW(&wc); RegisterClassExW(&wc);
wc.style = CS_HREDRAW | CS_VREDRAW; wc.style = 0;
wc.lpfnWndProc = preview_proc; wc.lpfnWndProc = preview_proc;
wc.cbClsExtra = 0; wc.cbClsExtra = 0;
wc.cbWndExtra = 0; wc.cbWndExtra = 0;
...@@ -2723,7 +2723,7 @@ int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hOldInstance, LPSTR szCmdPar ...@@ -2723,7 +2723,7 @@ int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hOldInstance, LPSTR szCmdPar
wc.hIcon = NULL; wc.hIcon = NULL;
wc.hIconSm = NULL; wc.hIconSm = NULL;
wc.hCursor = LoadCursor(NULL, IDC_IBEAM); wc.hCursor = LoadCursor(NULL, IDC_IBEAM);
wc.hbrBackground = GetSysColorBrush(COLOR_WINDOW); wc.hbrBackground = NULL;
wc.lpszMenuName = NULL; wc.lpszMenuName = NULL;
wc.lpszClassName = wszPreviewWndClass; wc.lpszClassName = wszPreviewWndClass;
RegisterClassExW(&wc); RegisterClassExW(&wc);
......
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