From: Eric Wertz Date: Thu, 16 Mar 2017 13:13:33 +0000 (-0400) Subject: Another fix for scaling X-Git-Url: https://ericdwertz.com/git/?a=commitdiff_plain;h=78d8380214d219b683d9cd84e4f9bed1db98ff22;p=ericdesktop.git Another fix for scaling --- 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;