diff options
author | Brian Cameron <Brian.Cameron@sun.com> | 2005-11-22 20:30:35 +0000 |
---|---|---|
committer | Brian Cameron <bcameron@src.gnome.org> | 2005-11-22 20:30:35 +0000 |
commit | 1f2d3d893b2d96a454a2055f054ce5e3d322f75d (patch) | |
tree | 131ea40eb2ab6aafc3ca1d3e4d559b5a150f419e /gui | |
parent | f1f926f4c6612171cf5166625448f88f39859303 (diff) | |
download | gdm-1f2d3d893b2d96a454a2055f054ce5e3d322f75d.tar.gz |
Now use GDK_RGB_DITHER_MAX so that GDM always displays a nice background
2005-11-22 Brian Cameron <Brian.Cameron@sun.com>
* gui/gdmlogin.c: Now use GDK_RGB_DITHER_MAX
so that GDM always displays a nice background
regardless of X configuration (X in 16bpp mode).
Fixes bug #322029. Patch provided by Frederic
Crozat.
Diffstat (limited to 'gui')
-rw-r--r-- | gui/gdmlogin.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gui/gdmlogin.c b/gui/gdmlogin.c index 6fbd48ce..2782dd40 100644 --- a/gui/gdmlogin.c +++ b/gui/gdmlogin.c @@ -3016,18 +3016,22 @@ static void set_root (GdkPixbuf *pb) { GdkPixmap *pm; + gint width, height; g_return_if_fail (pb != NULL); - gdk_pixbuf_render_pixmap_and_mask (pb, - &pm, - NULL /* mask_return */, - 0 /* alpha_threshold */); + gdk_drawable_get_size (gdk_get_default_root_window (), &width, &height); + pm = gdk_pixmap_new (gdk_get_default_root_window (), + width, height, -1); + /* paranoia */ if (pm == NULL) return; + gdk_draw_pixbuf (pm, NULL, pb, 0, 0, 0, 0, -1, -1, + GDK_RGB_DITHER_MAX, 0, 0); + gdk_error_trap_push (); gdk_window_set_back_pixmap (gdk_get_default_root_window (), |