On 02-03-2020 15:20, Akihiro Sagawa wrote:
- MultiByteToWideChar(CP_ACP, 0, string, count < 0 ? -1 : count, wstr, countW);
- hr = ID3DXFont_PreloadTextW(iface, wstr, count);
You want to use countW instead of count here.
There are similar issues with ID3DXFontImpl_DrawTextA in PATCH 2/5.
Regards, Akihiro Sagawa
Hi Akihiro,
Thanks for the comments. I could not exactly use countW there, but I sent updated patches that address the issue.
Cheers, Sven