From c903fe01f85d8bbd7b5fe670d2314a6c92bfe688 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 14 Dec 2023 19:24:52 +0300 Subject: libTextControl: patch for more effective icon caching (if we need it sometimes) --- libs/mTextControl/src/textcontrol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/mTextControl/src/textcontrol.cpp') 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; -- cgit v1.2.3