fix: Windows Background color issue (#14592)
Call InvalidateRect for windows after setting the bg color
This commit is contained in:
parent
f924a16055
commit
7e5815c180
1 changed files with 1 additions and 0 deletions
|
@ -788,6 +788,7 @@ void NativeWindowViews::SetBackgroundColor(SkColor background_color) {
|
||||||
reinterpret_cast<LONG_PTR>(brush));
|
reinterpret_cast<LONG_PTR>(brush));
|
||||||
if (previous_brush)
|
if (previous_brush)
|
||||||
DeleteObject((HBRUSH)previous_brush);
|
DeleteObject((HBRUSH)previous_brush);
|
||||||
|
InvalidateRect(GetAcceleratedWidget(), NULL, 1);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue