From 78d8380214d219b683d9cd84e4f9bed1db98ff22 Mon Sep 17 00:00:00 2001 From: Eric Wertz Date: Thu, 16 Mar 2017 09:13:33 -0400 Subject: [PATCH] Another fix for scaling --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index dd68214..c886012 100644 --- a/main.c +++ b/main.c @@ -147,7 +147,7 @@ void load_wallpaper_pixels(GdkPixbuf* pixbuf) targetheight = targetwidth / (float)width * (float)height; } - if( targetwidth >= screen_width || targetheight <= screen_height ) + if( targetwidth == screen_width ) { //Scale width, crop height tx1 = 0.0f; -- 2.47.0