mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 14:24:56 +00:00
Fix ImGuiStringViewText on MSVC
This commit is contained in:
@@ -15,7 +15,10 @@ namespace metaforce {
|
|||||||
std::array<ImGuiEntityEntry, 1024> ImGuiConsole::entities;
|
std::array<ImGuiEntityEntry, 1024> ImGuiConsole::entities;
|
||||||
std::set<TUniqueId> ImGuiConsole::inspectingEntities;
|
std::set<TUniqueId> ImGuiConsole::inspectingEntities;
|
||||||
|
|
||||||
void ImGuiStringViewText(std::string_view text) { ImGui::TextUnformatted(text.begin(), text.end()); }
|
void ImGuiStringViewText(std::string_view text) {
|
||||||
|
// begin()/end() do not work on MSVC
|
||||||
|
ImGui::TextUnformatted(text.data(), text.data() + text.size());
|
||||||
|
}
|
||||||
|
|
||||||
void ImGuiTextCenter(std::string_view text) {
|
void ImGuiTextCenter(std::string_view text) {
|
||||||
ImGui::NewLine();
|
ImGui::NewLine();
|
||||||
|
|||||||
Reference in New Issue
Block a user