From 0aee66fc33d8699dc97e93392b2e15e091bc27ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 19 Apr 2025 21:59:23 +0200 Subject: [PATCH] Text: simplify a calculation. The value is the same but this is shorter and less confusing. --- src/Magnum/Text/DistanceFieldGlyphCacheGL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/Text/DistanceFieldGlyphCacheGL.cpp b/src/Magnum/Text/DistanceFieldGlyphCacheGL.cpp index f9a46ea1f..dbac3902a 100644 --- a/src/Magnum/Text/DistanceFieldGlyphCacheGL.cpp +++ b/src/Magnum/Text/DistanceFieldGlyphCacheGL.cpp @@ -166,7 +166,7 @@ void DistanceFieldGlyphCacheGL::doSetImage(const Vector2i& image.data()}; input.setImage(0, GL::textureFormat(paddedImage.format()), paddedImage); - state.distanceField(input, texture(), Range2Di::fromSize(paddedMinRounded/ratio, paddedImage.size()/ratio), paddedImage.size()); + state.distanceField(input, texture(), {paddedMinRounded/ratio, paddedMaxRounded/ratio}, paddedImage.size()); } #endif }