diff options
author | George Hazan <george.hazan@gmail.com> | 2023-12-14 19:24:52 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-12-14 19:24:52 +0300 |
commit | c903fe01f85d8bbd7b5fe670d2314a6c92bfe688 (patch) | |
tree | f8d86207531ed378fa17719d4322da7a4ba6519e /libs/mTextControl/src/textcontrol.cpp | |
parent | 1c9faebef10ee8a8de06b31ba1cf0049be8ee6dc (diff) |
libTextControl: patch for more effective icon caching (if we need it sometimes)
Diffstat (limited to 'libs/mTextControl/src/textcontrol.cpp')
-rw-r--r-- | libs/mTextControl/src/textcontrol.cpp | 2 |
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; |