Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nem0 committed May 4, 2024
1 parent e692b8b commit 9facc72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions external/imgui/imgui_user.inl
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ namespace ImGuiEx {
}

void TextCentered(Lumix::StringView str) {
const float text_w = ImGui::CalcTextSize(str.m_begin, str.m_end).x;
const float text_w = ImGui::CalcTextSize(str.begin, str.end).x;
const float area_w = ImGui::GetContentRegionAvail().x;
float x = ImGui::GetCursorPosX();
x += (area_w - text_w) * 0.5f;
ImGui::SetCursorPosX(x);
ImGui::TextUnformatted(str.m_begin, str.m_end);
ImGui::TextUnformatted(str.begin, str.end);
}

void TextUnformatted(Lumix::StringView str) {
ImGui::TextUnformatted(str.m_begin, str.m_end);
ImGui::TextUnformatted(str.begin, str.end);
}

void BeginNodeEditor(const char* title, ImVec2* offset) {
Expand Down

0 comments on commit 9facc72

Please sign in to comment.