Use dedicated helper function to get window client area size
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user