fix strikethrough line being off by one

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2024-10-08 09:47:20 -07:00
1 parent 7abc6213f5
commit b837b0571d
1 file changed
+1 -1
@@ -357,7 +357,7 @@ public class BatchingFontRenderer {
final float underlineY = anchorY + underlying.FONT_HEIGHT - 1.0f;
float underlineStartX = 0.0f;
float underlineEndX = 0.0f;
final float strikethroughY = anchorY + (float) (underlying.FONT_HEIGHT / 2);
final float strikethroughY = anchorY + (float) (underlying.FONT_HEIGHT / 2) - 1.0F;
float strikethroughStartX = 0.0f;
float strikethroughEndX = 0.0f;