diff options
| author | primgineer <252772838+primgineer@users.noreply.github.com> | 2026-06-10 04:43:21 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-10 04:43:21 +0300 |
| commit | 31ba51b676efdd092463181c0637ba26ecc002b9 (patch) | |
| tree | b23142a55faf0fff6ca59b501a409da578e98e19 /indra/llwindow | |
| parent | a42082f94abce69b4a0b2492ca74964777c7fe7d (diff) | |
#5905 Fix Win32 white flash on startup
by handling WM_ERASEBKGND with black brush (#5903)
Diffstat (limited to 'indra/llwindow')
| -rw-r--r-- | indra/llwindow/llwindowwin32.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/llwindow/llwindowwin32.cpp b/indra/llwindow/llwindowwin32.cpp index 79cdf8b67a..77023b6ca6 100644 --- a/indra/llwindow/llwindowwin32.cpp +++ b/indra/llwindow/llwindowwin32.cpp @@ -2434,6 +2434,15 @@ LRESULT CALLBACK LLWindowWin32::mainWindowProc(HWND h_wnd, UINT u_msg, WPARAM w_ update_width, update_height)); break; } + case WM_ERASEBKGND: + { + RECT client_rect; + if (GetClientRect(h_wnd, &client_rect)) + { + FillRect((HDC)w_param, &client_rect, (HBRUSH)GetStockObject(BLACK_BRUSH)); + } + return 1; + } case WM_PARENTNOTIFY: { break; |
