Skip to content

Commit

Permalink
fix: Windows Background color issue (#14561)
Browse files Browse the repository at this point in the history
Call InvalidateRect for windows after setting the bg color
  • Loading branch information
nitsakh authored and codebytere committed Sep 12, 2018
1 parent 7b71d7c commit e90c281
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions atom/browser/native_window_views.cc
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,7 @@ void NativeWindowViews::SetBackgroundColor(SkColor background_color) {
reinterpret_cast<LONG_PTR>(brush));
if (previous_brush)
DeleteObject((HBRUSH)previous_brush);
InvalidateRect(GetAcceleratedWidget(), NULL, 1);
#endif
}

Expand Down

0 comments on commit e90c281

Please sign in to comment.