From 149fbaef09a56613c72855bc60355c7848256500 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Wed, 3 May 2017 15:12:23 -0700 Subject: Fix glyph offsets in cell We previously had a hard-coded value for aligning glyphs within cells. The font descent is now used, and the offset should be correct by default. --- res/text.v.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'res/text.v.glsl') diff --git a/res/text.v.glsl b/res/text.v.glsl index ccb6b8b5..081ca6b9 100644 --- a/res/text.v.glsl +++ b/res/text.v.glsl @@ -58,7 +58,7 @@ void main() cellPosition.y = termDim.y - cellPosition.y - cellDim.y; if (backgroundPass != 0) { - cellPosition.y = cellPosition.y - 3; + cellPosition.y = cellPosition.y; vec2 finalPosition = cellDim * position + cellPosition; gl_Position = projection * vec4(finalPosition.xy, 0.0, 1.0); TexCoords = vec2(0, 0); -- cgit v1.2.3-54-g00ecf