Fix background_image_linear

This commit is contained in:
Fredrick Brennan
2020-01-30 18:01:28 +08:00
parent 6627586d6e
commit fba9502a9d
2 changed files with 3 additions and 1 deletions

View File

@@ -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);

View File

@@ -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;