mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-11 02:59:40 +02:00
Fix background_image_linear
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user