[gnome-desktop] Fix a case of width-for-height confusion
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop] Fix a case of width-for-height confusion
- Date: Wed, 21 Apr 2010 01:16:45 +0000 (UTC)
commit df5e97b1343e60d4a7a7ba528d7948efae63aa46
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Apr 20 21:14:30 2010 -0400
Fix a case of width-for-height confusion
This can lead to huge memory consumption on multi-monitor systems.
libgnome-desktop/gnome-bg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgnome-desktop/gnome-bg.c b/libgnome-desktop/gnome-bg.c
index 5932b8d..ae67ad9 100644
--- a/libgnome-desktop/gnome-bg.c
+++ b/libgnome-desktop/gnome-bg.c
@@ -1277,7 +1277,7 @@ gnome_bg_get_pixmap_from_root (GdkScreen *screen)
}
width = gdk_screen_get_width (screen);
- height = gdk_screen_get_width (screen);
+ height = gdk_screen_get_height (screen);
pixmap = gdk_pixmap_new (source_pixmap != NULL? source_pixmap :
gdk_screen_get_root_window (screen),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]