[gthumb] desktop background: use 'stretch' for images bigger than half the screen



commit 16bf1a13b5f541438f22c5b6bd0bfd36f2617c8f
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Mar 25 21:19:21 2014 +0100

    desktop background: use 'stretch' for images bigger than half the screen

 extensions/desktop_background/actions.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/extensions/desktop_background/actions.c b/extensions/desktop_background/actions.c
index 98edbb3..ce1ca0b 100644
--- a/extensions/desktop_background/actions.c
+++ b/extensions/desktop_background/actions.c
@@ -296,10 +296,8 @@ wallpaper_metadata_ready_cb (GObject      *source_object,
                screen_width = gdk_screen_get_width (screen);
                screen_height = gdk_screen_get_height (screen);
 
-               if ((image_width < screen_width) || (image_height < screen_height)) {
-                       if ((image_width >= screen_width / 2) && (image_height >= screen_height / 2))
-                               wdata->new_style.background_style = BACKGROUND_STYLE_STRETCHED;
-               }
+               if ((image_width >= screen_width / 2) && (image_height >= screen_height / 2))
+                       wdata->new_style.background_style = BACKGROUND_STYLE_STRETCHED;
        }
 
        wallpaper_data_set__step2 (wdata);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]