wordpad: Reduce unnecessary flicker from extra background erasing.

This commit is contained in:
Dylan Smith 2010-07-19 18:20:48 -04:00 committed by Alexandre Julliard
parent dd789d50f2
commit 6c9edce1a8
2 changed files with 4 additions and 4 deletions

View File

@ -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);
} }

View File

@ -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
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
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);