diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2025-10-23 22:09:44 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2025-10-23 22:09:44 -0400 |
| commit | a58e1bd66da70898144029ea3aef5d0692c37414 (patch) | |
| tree | 21a46b129d12d006416c7967e438a6d430ee205d /graphics.c | |
| parent | 6933f5438f303cd90346ae779af141f910a4a1b1 (diff) | |
better centering
Diffstat (limited to 'graphics.c')
| -rw-r--r-- | graphics.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -371,6 +371,7 @@ void init_text_buffer(client_state* state, text_buffer_t* buffer, char* text, si // go forward pen_x += m->advance_x; buffer->pixel_len += ceil(m->advance_x); + if (n == 0) buffer->pixel_len += ceil(m->advance_x); // add a second if we are the first to equal padding on the right } // vertex buffer |
