mirror of
https://github.com/electron/electron.git
synced 2026-01-28 08:48:14 -05:00
fix: Windows Background color issue (#14561)
Call InvalidateRect for windows after setting the bg color
This commit is contained in:
committed by
Shelley Vohr
parent
7b71d7cbce
commit
e90c281ef3
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user