Fix ImGui::Text() format strings (#41)

* Fix format string
This commit is contained in:
Marco Rubin 2022-08-25 12:15:02 +02:00 committed by GitHub
parent 62ef3ea493
commit 1d3f62a09c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

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);
}
}
}