From f5afcc055d9c779d2372ca780608ae2fd5b39850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 3 Sep 2013 15:02:01 +0200 Subject: [PATCH] Adapted to Magnum changes. Oh boy. --- src/Plugins/MagnumFont/MagnumFont.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Plugins/MagnumFont/MagnumFont.cpp b/src/Plugins/MagnumFont/MagnumFont.cpp index 8481144e5..c14fef1f0 100644 --- a/src/Plugins/MagnumFont/MagnumFont.cpp +++ b/src/Plugins/MagnumFont/MagnumFont.cpp @@ -220,8 +220,8 @@ std::tuple MagnumFontLayouter::renderGlyph(Unsign const Rectangle texturePosition = Rectangle::fromSize(Vector2(position)/fontSize, Vector2(rectangle.size())/fontSize); - const Rectangle textureCoordinates(Vector2(rectangle.bottomLeft())/cache.textureSize(), - Vector2(rectangle.topRight())/cache.textureSize()); + const Rectangle textureCoordinates(Vector2(rectangle.bottomLeft())/Vector2(cache.textureSize()), + Vector2(rectangle.topRight())/Vector2(cache.textureSize())); /* Absolute quad position, composed from cursor position, glyph offset and texture position, denormalized to requested text size */