summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Buxton <a.j.buxton@gmail.com>2013-11-23 22:24:37 +0000
committerAlistair Buxton <a.j.buxton@gmail.com>2013-11-23 22:24:37 +0000
commit21774071601e0ff2d5d7c676a3845e44dee1a5ca (patch)
tree63ca2c7fa9ee9f134f38604b1467984f963e6efa
parent0ebb2054db8a161c2fadfdf1a63588db111c9a19 (diff)
downloadlightdm-gtk-greeter-21774071601e0ff2d5d7c676a3845e44dee1a5ca.tar.gz
Indentation fixes only.
-rw-r--r--src/lightdm-gtk-greeter.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/lightdm-gtk-greeter.c b/src/lightdm-gtk-greeter.c
index 6a1823e..b04a69f 100644
--- a/src/lightdm-gtk-greeter.c
+++ b/src/lightdm-gtk-greeter.c
@@ -1520,27 +1520,28 @@ set_background (GdkPixbuf *new_bg)
{
p_width = gdk_pixbuf_get_width(bg);
p_height = gdk_pixbuf_get_height(bg);
-
+
scale = (double)monitor_geometry.width/p_width;
height = p_height * scale;
width = monitor_geometry.width;
-
+
if (height < monitor_geometry.height)
{
scale = (double)monitor_geometry.height/p_height;
height = monitor_geometry.height;
width = p_width * scale;
}
-
-
+
GdkPixbuf *p = gdk_pixbuf_scale_simple (bg, width,
height, GDK_INTERP_BILINEAR);
if (width > monitor_geometry.width)
{
p = gdk_pixbuf_new_subpixbuf(p, (width-monitor_geometry.width)/2, 0, monitor_geometry.width, monitor_geometry.height);
}
- if (!gdk_pixbuf_get_has_alpha (p))
- p = gdk_pixbuf_add_alpha (p, FALSE, 255, 255, 255);
+ if (!gdk_pixbuf_get_has_alpha (p))
+ {
+ p = gdk_pixbuf_add_alpha (p, FALSE, 255, 255, 255);
+ }
gdk_cairo_set_source_pixbuf (c, p, monitor_geometry.x, monitor_geometry.y);
g_object_unref (p);
}