mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
Fix positioning of window numbers
Was broken in rendering pipeline refactor
This commit is contained in:
parent
2a26a4ddca
commit
25456806aa
1 changed files with 2 additions and 1 deletions
|
|
@ -873,7 +873,8 @@ draw_window_number(const UIRenderData *ui) {
|
|||
color_type digit_color = colorprofile_to_color_with_fallback(ui->screen->color_profile, ui->screen->color_profile->overridden.highlight_bg, ui->screen->color_profile->configured.highlight_bg, ui->screen->color_profile->overridden.default_fg, ui->screen->color_profile->configured.default_fg);
|
||||
color_vec3(graphics_program_layouts[GRAPHICS_ALPHA_MASK_PROGRAM].uniforms.amask_fg, digit_color);
|
||||
glUniform4f(graphics_program_layouts[GRAPHICS_ALPHA_MASK_PROGRAM].uniforms.amask_bg_premult, 0.f, 0.f, 0.f, 0.f);
|
||||
save_viewport_using_top_left_origin(letter_x, letter_y, lr.width_px, lr.height_px, ui->screen_height);
|
||||
save_viewport_using_top_left_origin(
|
||||
ui->screen_left + letter_x, ui->screen_top + letter_y, lr.width_px, lr.height_px, ui->full_framebuffer_height);
|
||||
draw_graphics(GRAPHICS_ALPHA_MASK_PROGRAM, ird, 0, 1, 1.f);
|
||||
restore_viewport();
|
||||
#undef lr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue