From 2e1ab2595b408ed321e69c61c7cd39c05c8e2d69 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 24 Nov 2021 21:06:31 +0100 Subject: Fix glyphs overlapping, but adds unnecessary padding --- include/mglpp/system/vec.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/mglpp/system/vec.hpp b/include/mglpp/system/vec.hpp index c81cdfa..44141f8 100644 --- a/include/mglpp/system/vec.hpp +++ b/include/mglpp/system/vec.hpp @@ -58,7 +58,11 @@ namespace mgl { } vec2 to_vec2f() const { - return { (float)x, (float)y }; + return { static_cast(x), static_cast(y) }; + } + + vec2 floor() const { + return { static_cast(x), static_cast(y) }; } T x; -- cgit v1.2.3