mirror of https://github.com/WerWolv/ImHex.git
fix: ImGui::TextFormattedCentered didn't properly pass format arguments forward
This commit is contained in:
parent
05104aef6c
commit
5ae6c8a627
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue