Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Unified Diff: ui/base/win/window_impl.cc

Issue 23596011: Set hbrBackground on wndclass, fixes white flash on resize (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/win/window_impl.cc
diff --git a/ui/base/win/window_impl.cc b/ui/base/win/window_impl.cc
index f53b1bf57ef29c20d92341e4aa7d7e40ad06a6ce..5797d4c5eda21342c9fedbf0eb6469a31c623ff5 100644
--- a/ui/base/win/window_impl.cc
+++ b/ui/base/win/window_impl.cc
@@ -100,7 +100,7 @@ ATOM ClassRegistrar::RetrieveClassAtom(const ClassInfo& class_info) {
string16 name = string16(WindowImpl::kBaseClassName) +
base::IntToString16(registered_count_++);
- HBRUSH background = NULL;
+ HBRUSH background = reinterpret_cast<HBRUSH>(COLOR_WINDOW);
WNDCLASSEX window_class;
base::win::InitializeWindowClass(
name.c_str(),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698