Fix utf8 tooltips on web links

This commit is contained in:
Nimetu 2015-04-19 20:26:38 +03:00
parent ce65cf7b1f
commit eb83692d34

View file

@ -252,7 +252,7 @@ namespace NLGUI
if (vLink->getMouseOverShape(tooltip, rot, col))
{
setString(ucstring(tooltip));
setString(ucstring::makeFromUtf8(tooltip));
sint32 texId = rVR.getTextureIdFromName ("curs_pick.tga");
CInterfaceGroup *stringCursor = hwMouse ? _StringCursorHardware : _StringCursor;
@ -408,7 +408,7 @@ namespace NLGUI
splitString(tooltipInfos, "@", tooltipInfosList);
texName = tooltipInfosList[0];
tooltip = tooltipInfosList[1];
setString(ucstring(tooltip));
setString(ucstring::makeFromUtf8(tooltip));
CViewRenderer &rVR = *CViewRenderer::getInstance();
sint32 texId = rVR.getTextureIdFromName (texName);