mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: Windows Background color issue (#14592)
Call InvalidateRect for windows after setting the bg color
This commit is contained in:
@@ -788,6 +788,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