]> Eric's Git Repo - ericdesktop.git/commitdiff
Another fix for scaling master
authorEric Wertz <ericdwertz@gmail.com>
Thu, 16 Mar 2017 13:13:33 +0000 (09:13 -0400)
committerEric Wertz <ericdwertz@gmail.com>
Thu, 16 Mar 2017 13:13:33 +0000 (09:13 -0400)
main.c

diff --git a/main.c b/main.c
index dd6821444940f7cb8fb09ee32c6db2e22fcd7109..c886012eed9b73a5014df6b8d8cda8ff49f56747 100644 (file)
--- 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;