mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-27 03:42:49 +00:00
Fix background_image_linear
This commit is contained in:
parent
6627586d6e
commit
fba9502a9d
2 changed files with 3 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ add_os_window() {
|
|||
r = REPEAT_DEFAULT; break;
|
||||
}
|
||||
send_image_to_gpu(&bgimage->texture_id, bgimage->bitmap, bgimage->width,
|
||||
bgimage->height, false, true, false, r);
|
||||
bgimage->height, false, true, OPT(background_image_linear), r);
|
||||
ans->bgimage = bgimage;
|
||||
global_state.bgimage = bgimage;
|
||||
}
|
||||
|
|
@ -533,6 +533,7 @@ PYWRAP1(set_options) {
|
|||
S(background_image_scale, PyFloat_AsFloat);
|
||||
S(background_image_layout, bglayout);
|
||||
S(background_image, (char*)PyUnicode_AsUTF8);
|
||||
S(background_image_linear, PyObject_IsTrue);
|
||||
S(dim_opacity, PyFloat_AsFloat);
|
||||
S(dynamic_background_opacity, PyObject_IsTrue);
|
||||
S(inactive_text_alpha, PyFloat_AsFloat);
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ typedef struct {
|
|||
BackgroundImageLayout background_image_layout;
|
||||
float background_image_opacity;
|
||||
float background_image_scale;
|
||||
bool background_image_linear;
|
||||
|
||||
bool dynamic_background_opacity;
|
||||
float inactive_text_alpha;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue