Fixed build errors and warnings.

This commit is contained in:
Muzychenko Andrey 2022-08-29 11:19:52 +03:00
parent 9f17e0dd0a
commit 339021a11b
3 changed files with 4 additions and 4 deletions

View File

@ -302,7 +302,7 @@ void gdrv::grtext_draw_ttext_in_box(TTextBox* textBox)
{
ImGui::SetWindowFontScale(fullscrn::GetScreenToPinballRatio());
if(textBox->Message1)
ImGui::TextWrapped(textBox->Message1->Text);
ImGui::TextWrapped("%s", textBox->Message1->Text);
}
ImGui::End();
}

View File

@ -349,8 +349,8 @@ void options::RenderControlDialog()
ImGui::TextUnformatted(pinball::get_rc_string(Msg::KEYMAPPER_Groupbox2));
ImGui::Separator();
ImGui::TextWrapped(pinball::get_rc_string(Msg::KEYMAPPER_Help1));
ImGui::TextWrapped(pinball::get_rc_string(Msg::KEYMAPPER_Help2));
ImGui::TextWrapped("%s", pinball::get_rc_string(Msg::KEYMAPPER_Help1));
ImGui::TextWrapped("%s", pinball::get_rc_string(Msg::KEYMAPPER_Help2));
ImGui::Spacing();
ImGui::TextUnformatted(pinball::get_rc_string(Msg::KEYMAPPER_Groupbox1));

View File

@ -292,7 +292,7 @@ enum class lang : int
template <typename Key, typename Value, int N>
struct InitializedArray
{
static_assert(std::is_enum_v<Key>, "Key is not an enum");
static_assert(std::is_enum<Key>::value, "Key is not an enum");
InitializedArray(const std::initializer_list<std::pair<Key, Value>>& iList)
{