Fix scrollback_indicator_opacity not actually controlling the opacity

Fixes #7557
This commit is contained in:
Kovid Goyal 2024-06-19 06:03:30 +05:30
parent fbdc2b44e0
commit 2bcb32d611
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 1 deletions

View file

@ -63,6 +63,8 @@ Detailed list of changes
- Wayland labwc: Fix kitty timing out waiting for compositor to quit fucking around with scales on labwc (:iss:`7540`)
- Fix :opt:`scrollback_indicator_opacity` not actually controlling the opacity (:iss:`7557`)
0.35.1 [2024-05-31]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -612,7 +612,7 @@ draw_scroll_indicator(bool premult, Screen *screen, const CellRenderData *crd) {
if (premult) { BLEND_PREMULT } else { BLEND_ONTO_OPAQUE }
bind_program(TINT_PROGRAM);
const color_type bar_color = colorprofile_to_color(screen->color_profile, screen->color_profile->overridden.highlight_bg, screen->color_profile->configured.highlight_bg).rgb;
GLfloat alpha = 0.8f;
GLfloat alpha = OPT(scrollback_indicator_opacity);
float frac = (float)screen->scrolled_by / (float)screen->historybuf->count;
const GLfloat bar_height = crd->gl.dy;
GLfloat bottom = (crd->gl.ystart - crd->gl.height);