From 9686ccfd50b6edf32273ea63ee2833f645b273d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 17 Oct 2023 21:50:02 +0200 Subject: [PATCH] Text: the decomposed offsets don't really help anything in the test. --- src/Magnum/Text/Test/RendererGLTest.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Magnum/Text/Test/RendererGLTest.cpp b/src/Magnum/Text/Test/RendererGLTest.cpp index 54a236e0e..ec557c89a 100644 --- a/src/Magnum/Text/Test/RendererGLTest.cpp +++ b/src/Magnum/Text/Test/RendererGLTest.cpp @@ -70,17 +70,17 @@ const struct { make sense? why is not done for the LineLeft case, then? */ {"top center, integral", Alignment::TopCenterIntegral, /* The Y shift is rounded to whole units */ - {-5.5f - 2.5f, -7.5f - 3.5f}}, + {-8.0f, -11.0f}}, {"top left", Alignment::TopLeft, - {0.0f, -7.0f - 3.5f}}, + {0.0f, -10.5f}}, {"top right", Alignment::TopRight, - {-10.0f - 2.5f, -7.0f - 3.5f}}, + {-12.5f, -10.5f}}, {"middle center", Alignment::MiddleCenter, /* Half size of the bounds quad */ - {-5.0f - 2.5f, -3.5f - 3.625f}}, + {-7.5f, -7.125f}}, {"middle center, integral", Alignment::MiddleCenterIntegral, /* The X shift is rounded to whole units */ - {-5.5f - 2.5f, -3.5f - 3.5f}}, + {-8.0f, -7.0f}}, }; RendererGLTest::RendererGLTest() { @@ -278,7 +278,7 @@ void RendererGLTest::renderMesh() { /* Alignment offset */ /** @todo same as in render(), figure out if the initial offset makes sense or not */ - const Vector2 offset{-5.0f - 2.5f, -3.5f - 3.625f}; + const Vector2 offset{-7.5f, -7.125f}; /* Bounds */ CORRADE_COMPARE(bounds, (Range2D{{2.5f, 3.75f}, {12.5f, 10.5f}}.translated(offset))); @@ -406,7 +406,7 @@ void RendererGLTest::mutableText() { /* Alignment offset */ /** @todo same as in render(), figure out if the initial offset makes sense or not */ - const Vector2 offset{-5.0f - 2.5f, -3.5f - 3.625f}; + const Vector2 offset{-7.5f, -7.125f}; /* Updated bounds and mesh vertex count */ CORRADE_COMPARE(renderer.rectangle(), (Range2D{{2.5f, 3.75f}, {12.5f, 10.5f} }.translated(offset)));