mirror of
https://github.com/orange-cpp/omath.git
synced 2026-04-18 19:03:28 +00:00
fix
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
#include "omath/utility/color.hpp"
|
#include "omath/utility/color.hpp"
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
|
#include <span>
|
||||||
namespace omath::hud
|
namespace omath::hud
|
||||||
{
|
{
|
||||||
class EntityOverlay final
|
class EntityOverlay final
|
||||||
|
|||||||
@@ -90,7 +90,6 @@ namespace omath::hud
|
|||||||
void EntityOverlay::add_top_label(const Color& color, const float offset, const bool outlined,
|
void EntityOverlay::add_top_label(const Color& color, const float offset, const bool outlined,
|
||||||
const std::string_view text)
|
const std::string_view text)
|
||||||
{
|
{
|
||||||
|
|
||||||
m_text_cursor_top.y -= ImGui::CalcTextSize(text.data()).y;
|
m_text_cursor_top.y -= ImGui::CalcTextSize(text.data()).y;
|
||||||
|
|
||||||
if (outlined)
|
if (outlined)
|
||||||
|
|||||||
Reference in New Issue
Block a user