mirror of
https://github.com/swaywm/sway.git
synced 2025-01-15 00:36:23 +01:00
fix #971
This commit is contained in:
parent
51c367dfdc
commit
f84217d07c
1 changed files with 2 additions and 2 deletions
|
@ -236,7 +236,7 @@ void render_image(struct window *window, cairo_surface_t *image, enum scaling_mo
|
||||||
case SCALING_MODE_FILL:
|
case SCALING_MODE_FILL:
|
||||||
{
|
{
|
||||||
double window_ratio = (double) wwidth / wheight;
|
double window_ratio = (double) wwidth / wheight;
|
||||||
double bg_ratio = wheight;
|
double bg_ratio = width / height;
|
||||||
|
|
||||||
if (window_ratio > bg_ratio) {
|
if (window_ratio > bg_ratio) {
|
||||||
double scale = (double) wwidth / width;
|
double scale = (double) wwidth / width;
|
||||||
|
|
Loading…
Reference in a new issue