summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2017-05-03 15:12:23 -0700
committerJoe Wilm <jwilm@users.noreply.github.com>2017-05-06 12:53:54 -0700
commit149fbaef09a56613c72855bc60355c7848256500 (patch)
tree89bb581b2135c702e2f8c03772bf9ddd4470ac8f /res
parent6659810a22e62f8b41d7bc35ed07905ccebda68b (diff)
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.
Diffstat (limited to 'res')
-rw-r--r--res/text.v.glsl2
1 files changed, 1 insertions, 1 deletions
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);