diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2021-12-17 13:07:23 +0200 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2021-12-17 13:07:23 +0200 |
commit | 3ac21ebbf6b354e16ead2d095a61152c95a7243c (patch) | |
tree | b0e30aaf8bab2071cccb9569f149bfb9bc9c4e1f /indra | |
parent | 0fd7d20949a3f471e7ebb78731612013dfad7b0d (diff) |
SL-16454 FIXED Performance viewer login screen is black
Diffstat (limited to 'indra')
-rw-r--r-- | indra/llwindow/llwindowwin32.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/llwindow/llwindowwin32.cpp b/indra/llwindow/llwindowwin32.cpp index 0064ee26d2..e4d771978a 100644 --- a/indra/llwindow/llwindowwin32.cpp +++ b/indra/llwindow/llwindowwin32.cpp @@ -427,6 +427,9 @@ LLWindowWin32::LLWindowWin32(LLWindowCallbacks* callbacks, memset(mPrevGammaRamp, 0, sizeof(mPrevGammaRamp)); mCustomGammaSet = FALSE; mWindowHandle = NULL; + + mRect = {0, 0, 0, 0}; + mClientRect = {0, 0, 0, 0}; if (!SystemParametersInfo(SPI_GETMOUSEVANISH, 0, &mMouseVanish, 0)) { @@ -1506,6 +1509,16 @@ const S32 max_format = (S32)num_formats - 1; } recreateWindow(window_rect, dw_ex_style, dw_style); + + RECT rect; + RECT client_rect; + //initialize immediately on main thread + if (GetWindowRect(mWindowHandle, &rect) && + GetClientRect(mWindowHandle, &client_rect)) + { + mRect = rect; + mClientRect = client_rect; + }; if (mWindowHandle) { |