Wayland: Fix background image scaling using tiled mode on high DPI screens
This commit is contained in:
parent
0e69324469
commit
4d80427908
@ -48,6 +48,8 @@ Detailed list of changes
|
|||||||
|
|
||||||
- Fix :opt:`background_tint` not applying to window margins and padding (:iss:`3933`)
|
- Fix :opt:`background_tint` not applying to window margins and padding (:iss:`3933`)
|
||||||
|
|
||||||
|
- Wayland: Fix background image scaling using tiled mode on high DPI screens
|
||||||
|
|
||||||
|
|
||||||
0.26.3 [2022-09-22]
|
0.26.3 [2022-09-22]
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|||||||
@ -425,7 +425,7 @@ draw_bg(OSWindow *w) {
|
|||||||
glUniform1i(bgimage_program_layout.image_location, BGIMAGE_UNIT);
|
glUniform1i(bgimage_program_layout.image_location, BGIMAGE_UNIT);
|
||||||
glUniform1f(bgimage_program_layout.opacity_location, OPT(background_opacity));
|
glUniform1f(bgimage_program_layout.opacity_location, OPT(background_opacity));
|
||||||
glUniform4f(bgimage_program_layout.sizes_location,
|
glUniform4f(bgimage_program_layout.sizes_location,
|
||||||
(GLfloat)w->window_width, (GLfloat)w->window_height, (GLfloat)w->bgimage->width, (GLfloat)w->bgimage->height);
|
(GLfloat)w->viewport_width, (GLfloat)w->viewport_height, (GLfloat)w->bgimage->width, (GLfloat)w->bgimage->height);
|
||||||
glUniform1f(bgimage_program_layout.premult_location, w->is_semi_transparent ? 1.f : 0.f);
|
glUniform1f(bgimage_program_layout.premult_location, w->is_semi_transparent ? 1.f : 0.f);
|
||||||
GLfloat tiled = 0.f;;
|
GLfloat tiled = 0.f;;
|
||||||
switch (OPT(background_image_layout)) {
|
switch (OPT(background_image_layout)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user