diff options
Diffstat (limited to 'libs/mTextControl/src/textcontrol.cpp')
-rw-r--r-- | libs/mTextControl/src/textcontrol.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/mTextControl/src/textcontrol.cpp b/libs/mTextControl/src/textcontrol.cpp index a7069ae88c..c62148269b 100644 --- a/libs/mTextControl/src/textcontrol.cpp +++ b/libs/mTextControl/src/textcontrol.cpp @@ -78,8 +78,7 @@ LRESULT CALLBACK MTextControlWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM GetWindowText(hwnd, data->text, textLength + 1); data->mtext = MTextCreateW(data->htu, data->text); - RECT rc; GetClientRect(hwnd, &rc); - MTextSetParent(data->mtext, hwnd, rc); + MTextSetParent(data->mtext, hwnd); InvalidateRect(hwnd, nullptr, TRUE); } |