summaryrefslogtreecommitdiff
path: root/libs/mTextControl/src/textcontrol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/mTextControl/src/textcontrol.cpp')
-rw-r--r--libs/mTextControl/src/textcontrol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/mTextControl/src/textcontrol.cpp b/libs/mTextControl/src/textcontrol.cpp
index 2391ecc1ac..f261094307 100644
--- a/libs/mTextControl/src/textcontrol.cpp
+++ b/libs/mTextControl/src/textcontrol.cpp
@@ -132,7 +132,7 @@ static LRESULT CALLBACK MTextControlWndProc(HWND hwnd, UINT msg, WPARAM wParam,
if (data->mtext)
MTextDestroy(data->mtext);
- data->mtext = MTextCreateEx(data->htu, (char*)lParam, wParam);
+ data->mtext = MTextCreateEx2(hwnd, data->htu, (char *)lParam, wParam);
MTextSetParent(data->mtext, hwnd);
InvalidateRect(hwnd, nullptr, TRUE);
return TRUE;