From c30a72f19c71bb1c78f6e11d2cdeff30909cbd08 Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Thu, 20 Nov 2025 12:58:19 -0500 Subject: draw selected input better --- graphics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'graphics.c') diff --git a/graphics.c b/graphics.c index de9077d..a3ac491 100644 --- a/graphics.c +++ b/graphics.c @@ -216,8 +216,8 @@ void render_frame(client_state *state) { glUseProgram(state->box_shader); glUniform4f(state->b_color_uniform, config.highlight_color.r,config.highlight_color.g,config.highlight_color.b,config.highlight_color.a); glUniform2f(state->b_screen_size_uniform, state->width, state->height); - glUniform2f(state->b_start_uniform, input.x, input.y); - glUniform2f(state->b_size_uniform, input.dx, input.dy); + glUniform2f(state->b_start_uniform, input.x + state->horizontal_spacing / 2.0f, input.y); + glUniform2f(state->b_size_uniform, state->input_buffer_grafix.pixel_len, input.dy); glDrawArrays(GL_TRIANGLES, 0, 6); } -- cgit v1.2.3