FZ: ZoneWindowDrawing is now properly initialized (#8836)

This commit is contained in:
Andrey Nekrasov
2020-12-31 00:47:18 +03:00
committed by GitHub
parent 8b8f87c7e8
commit 4aecabae47
3 changed files with 11 additions and 9 deletions

View File

@@ -28,9 +28,9 @@ class ZoneWindowDrawing
unsigned duration;
};
HWND m_window;
RECT m_clientRect;
ID2D1HwndRenderTarget* m_renderTarget;
HWND m_window = nullptr;
RECT m_clientRect{};
ID2D1HwndRenderTarget* m_renderTarget = nullptr;
std::optional<AnimationInfo> m_animation;
std::mutex m_mutex;
@@ -43,9 +43,9 @@ class ZoneWindowDrawing
static D2D1_RECT_F ConvertRect(RECT rect);
void Render();
std::atomic<bool> m_shouldRender;
std::atomic<bool> m_abortThread;
std::atomic<bool> m_lowLatencyLock;
std::atomic<bool> m_shouldRender = false;
std::atomic<bool> m_abortThread = false;
std::atomic<bool> m_lowLatencyLock = false;
std::condition_variable m_cv;
std::thread m_renderThread;