mirror of
https://github.com/orange-cpp/omath.git
synced 2026-04-19 11:43:26 +00:00
fix
This commit is contained in:
@@ -50,7 +50,7 @@ namespace omath::hud
|
|||||||
text.data() + text.size());
|
text.data() + text.size());
|
||||||
}
|
}
|
||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
virtual Vector2<float> calc_text_size(const std::string_view& text)
|
Vector2<float> calc_text_size(const std::string_view& text)
|
||||||
{
|
{
|
||||||
return Vector2<float>::from_im_vec2(ImGui::CalcTextSize(text.data()));
|
return Vector2<float>::from_im_vec2(ImGui::CalcTextSize(text.data()));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user