Merge pull request #1017 from zandrmartin/swaylock-scaling-mode

fix #971
master
Drew DeVault 8 years ago committed by GitHub
commit 1882cb6733

@ -236,7 +236,7 @@ void render_image(struct window *window, cairo_surface_t *image, enum scaling_mo
case SCALING_MODE_FILL:
{
double window_ratio = (double) wwidth / wheight;
double bg_ratio = wheight;
double bg_ratio = width / height;
if (window_ratio > bg_ratio) {
double scale = (double) wwidth / width;

Loading…
Cancel
Save