aboutsummaryrefslogtreecommitdiff
path: root/font.c
diff options
context:
space:
mode:
Diffstat (limited to 'font.c')
-rw-r--r--font.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/font.c b/font.c
index 533788c..85e0a24 100644
--- a/font.c
+++ b/font.c
@@ -111,7 +111,7 @@ void atlas_create_texture(client_state* state) {
}
metric_t* metric = &state->atlas.metrics[i];
- metric->texture_offset = (float)x / state->atlas.width;
+ metric->texture_x_start = (float)x / state->atlas.width;
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
glTexSubImage2D(
@@ -125,7 +125,7 @@ void atlas_create_texture(client_state* state) {
GL_UNSIGNED_BYTE,
state->ft_face->glyph->bitmap.buffer);
x += state->ft_face->glyph->bitmap.width;
- metric->texture_size = (float)x / state->atlas.width;
+ metric->texture_x_end = (float)x / state->atlas.width;
}
}