Fix #116618: Win32 Use Null for Background Window Brush #116642

Merged
Harley Acheson merged 1 commits from Harley/blender:Win32BgBrush into main 2023-12-29 23:12:20 +01:00

1 Commits

Author SHA1 Message Date
Harley Acheson a47a690784 Fix #116618: Win32 Use Null for Background Window Brush
Using a non-null background brush does remove an initial white flash
while the program is loading and before we start painting. But this
results in some extra and unnecessary redraws. Default WM_ERASEBKGND
behaviour is to do nothing if this is brush is null, so if non-null we
get erased and must redraw. Suppressing WM_ERASEBKGND will not give us
that initial paint, so no benefit in keeping the brush.
2023-12-29 14:09:46 -08:00