Fix format string

This commit is contained in:
Marco Rubin 2022-08-25 09:50:33 +00:00 committed by GitHub
parent 908a8ae58f
commit 9f055d1d76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -390,7 +390,7 @@ void swkbd_render(bool mainWindow)
ImGui::PushFont(font);
if (ImGui::Begin("Keyboard Input", nullptr, kPopupFlags))
{
ImGui::Text(_utf8WrapperPtr(ICON_FA_KEYBOARD));
ImGui::Text("%s", _utf8WrapperPtr(ICON_FA_KEYBOARD));
ImGui::SameLine(70);
auto text = boost::nowide::narrow(fmt::format(L"{}", swkbdInternalState->formStringBuffer));
@ -647,4 +647,4 @@ namespace swkbd
osLib_addFunction("swkbd", "SwkbdIsNeedCalcSubThreadFont__3RplFv", swkbdExport_SwkbdIsNeedCalcSubThreadFont);
osLib_addFunction("swkbd", "SwkbdIsNeedCalcSubThreadPredict__3RplFv", swkbdExport_SwkbdIsNeedCalcSubThreadPredict);
}
}
}