Skip to content

Commit

Permalink
Use fmt functions instead of std due to outdated iOS compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
SaschaWillems committed Jan 16, 2025
1 parent 31ffa06 commit c4d227a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion framework/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ void Gui::show_stats(const Stats &stats)
if (stats.is_available(stat_index))
{
auto graph_value = avg * graph_data.scale_factor;
graph_label << std::vformat(graph_data.name + ": " + graph_data.format, std::make_format_args(graph_value));
graph_label << fmt::vformat(graph_data.name + ": " + graph_data.format, fmt::make_format_args(graph_value));
ImGui::PushItemFlag(ImGuiItemFlags_Disabled, true);
ImGui::PlotLines("", &graph_elements[0], static_cast<int>(graph_elements.size()), 0, graph_label.str().c_str(), graph_min, graph_max, graph_size);
ImGui::PopItemFlag();
Expand Down
2 changes: 1 addition & 1 deletion framework/hpp_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ void HPPGui::show_stats(const vkb::stats::HPPStats &stats)
if (stats.is_available(stat_index))
{
auto graph_value = avg * graph_data.scale_factor;
graph_label << std::vformat(graph_data.name + ": " + graph_data.format, std::make_format_args(graph_value));
graph_label << fmt::vformat(graph_data.name + ": " + graph_data.format, fmt::make_format_args(graph_value));
ImGui::PushItemFlag(ImGuiItemFlags_Disabled, true);
ImGui::PlotLines("", &graph_elements[0], static_cast<int>(graph_elements.size()), 0, graph_label.str().c_str(), graph_min, graph_max, graph_size);
ImGui::PopItemFlag();
Expand Down

0 comments on commit c4d227a

Please sign in to comment.