Use dedicated helper function to get window client area size

This commit is contained in:
Artur Wieczorek
2021-02-14 00:13:47 +01:00
parent bce6c0911e
commit cd6548c80e

View File

@@ -3511,8 +3511,7 @@ public:
void Resize() wxOVERRIDE void Resize() wxOVERRIDE
{ {
RECT clientRect; RECT clientRect = wxGetClientRect(m_hwnd);
GetClientRect(m_hwnd, &clientRect);
D2D1_SIZE_U hwndSize = D2D1::SizeU( D2D1_SIZE_U hwndSize = D2D1::SizeU(
clientRect.right - clientRect.left, clientRect.right - clientRect.left,
@@ -3533,8 +3532,7 @@ protected:
HRESULT result; HRESULT result;
RECT clientRect; RECT clientRect = wxGetClientRect(m_hwnd);
GetClientRect(m_hwnd, &clientRect);
D2D1_SIZE_U size = D2D1::SizeU( D2D1_SIZE_U size = D2D1::SizeU(
clientRect.right - clientRect.left, clientRect.right - clientRect.left,