diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2025-10-28 01:40:34 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2025-10-28 01:40:34 -0400 |
| commit | 2b4305b89e0aee24e0f6d5470e4be9abb4854943 (patch) | |
| tree | 5bb9ce45cebad2110a9afbf60395f9df9c53a2d6 /graphics.c | |
| parent | e42d9bb1834678fb0275dbcdfc84bc80b1ca27a8 (diff) | |
non fancy scroll
Diffstat (limited to 'graphics.c')
| -rw-r--r-- | graphics.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -179,7 +179,7 @@ void render_frame(client_state *state) { // calculate input buffer size rect_t prompt, input, options; - calculate_layout(state, &prompt, &input, &options, false); + calculate_layout(state, &prompt, &input, &options, false, false); if (state->prompt && *state->prompt) { glScissor(prompt.x, prompt.y, prompt.dx, prompt.dy); @@ -248,7 +248,7 @@ void render_frame(client_state *state) { glUniform4f(state->t_color_uniform, text_color.r,text_color.g,text_color.b,text_color.a); glActiveTexture(GL_TEXTURE0); glBindTexture(GL_TEXTURE_2D, state->atlas.texture); - for (uint32_t i = 0; i < array_size(state->filtered_items); ++i) { + for (uint32_t i = state->displayed_item_start; i < state->displayed_item_end; ++i) { item_display_t* display = &state->filtered_items[i]; item_t* item = display->item; |
