Skip to content

Commit

Permalink
Ensure that the scrollbar defines more vertex fields
Browse files Browse the repository at this point in the history
This is a bit of a speculative change to see if it helps with
refs: wez#82

I have sometimes seen my scrollbar have a color that I didn't
choose and ISTR having some issues in the past when updating
the quads if I didn't set all of the fields of the vertex
to a better defined value.
  • Loading branch information
wez committed Dec 28, 2019
1 parent bd0859b commit 5d55b8b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/frontend/gui/termwindow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1423,9 +1423,17 @@ impl TermWindow {
let left = right - padding;

let color = rgbcolor_to_window_color(palette.scrollbar_thumb);
let white_space = gl_state.util_sprites.white_space.texture_coords();

quad.set_bg_color(color);
quad.set_fg_color(color);
quad.set_position(left, top, right, bottom);
quad.set_texture(white_space);
quad.set_texture_adjust(0., 0., 0., 0.);
quad.set_underline(white_space);
quad.set_has_color(false);
quad.set_cursor(white_space);
quad.set_cursor_color(rgbcolor_to_window_color(background_color));
}

{
Expand Down

0 comments on commit 5d55b8b

Please sign in to comment.