From d57d08b673d3b398bb1ab8b916bc60b9049e5cd2 Mon Sep 17 00:00:00 2001 From: AlexisDrogoul Date: Sun, 25 Jul 2021 12:00:14 +0700 Subject: [PATCH] Removes a useless call to Math.round(...) --- .../src/ummisco/gama/opengl/scene/text/TextDrawer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ummisco.gama.opengl/src/ummisco/gama/opengl/scene/text/TextDrawer.java b/ummisco.gama.opengl/src/ummisco/gama/opengl/scene/text/TextDrawer.java index f288ecda2d..7ec3e79335 100644 --- a/ummisco.gama.opengl/src/ummisco/gama/opengl/scene/text/TextDrawer.java +++ b/ummisco.gama.opengl/src/ummisco/gama/opengl/scene/text/TextDrawer.java @@ -94,7 +94,7 @@ protected void _draw(final StringObject s) { drawBitmap(s.getObject(), attributes); } else { Font font = attributes.getFont(); - final int fontSize = autoScaleUp(Math.round(font.getSize())); + final int fontSize = autoScaleUp(font.getSize()); if (fontSize != font.getSize()) { font = font.deriveFont((float) fontSize); } Shape shape = font.createGlyphVector(context, s.getObject()).getOutline(); final Rectangle2D bounds = shape.getBounds2D();