diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2025-10-17 19:20:14 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2025-10-17 19:20:14 -0400 |
| commit | 90123fe5eb84061f9756d38bc6a5c8775798309b (patch) | |
| tree | f277b15a00809224cffba49c3a394fa25423ab0d /graphics.c | |
| parent | 1228252e6bc4f18664725d60413896e6d9d9a6c5 (diff) | |
better offset
Diffstat (limited to 'graphics.c')
| -rw-r--r-- | graphics.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -148,7 +148,7 @@ void render_frame(client_state *state) { glDrawElements(GL_TRIANGLES, state->input_buffer_grafix.num_elements, GL_UNSIGNED_INT, 0); // shift pen if (state->lines > 0) pen_y -= state->line_height; - else pen_x += state->input_buffer_grafix.pixel_len; + else pen_x = state->width / 3.0f; // draw options array_for_all(item_t, item, state->items) { @@ -158,7 +158,7 @@ void render_frame(client_state *state) { // shift pen if (state->lines > 0) pen_y -= state->line_height; - else pen_x += item->pixel_len; + else pen_x += item->pixel_len + (state->line_height / 2.0f); } // present screen |
