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 --- depends/mgl | 2 +- include/mglpp/system/vec.hpp | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/depends/mgl b/depends/mgl index 242e4d0..6b7fbf4 160000 --- a/depends/mgl +++ b/depends/mgl @@ -1 +1 @@ -Subproject commit 242e4d0ea14a713e38b99e4206bb0f05c05f92df +Subproject commit 6b7fbf4fe476d908fd44ca9421363e053324ba69 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