fix: ImGui::TextFormattedCentered didn't properly pass format arguments forward

This commit is contained in:
WerWolv 2022-02-19 18:02:44 +01:00
parent 05104aef6c
commit 5ae6c8a627
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ namespace ImGui {
}
void TextFormattedCentered(const std::string &fmt, auto &&...args) {
auto text = hex::format(fmt);
auto text = hex::format(fmt, std::forward<decltype(args)>(args)...);
auto availableSpace = ImGui::GetContentRegionAvail();
auto textSize = ImGui::CalcTextSize(text.c_str(), nullptr, false, availableSpace.x * 0.75F);