[gnome-games] aisleriot: Use gdk_pixbuf_new_from_inline() here
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] aisleriot: Use gdk_pixbuf_new_from_inline() here
- Date: Tue, 19 Oct 2010 17:25:29 +0000 (UTC)
commit abf39a7c7e97bfc56db67efd9bcabe9736fa05b8
Author: Christian Persch <chpe gnome org>
Date: Tue Oct 19 17:37:57 2010 +0200
aisleriot: Use gdk_pixbuf_new_from_inline() here
aisleriot/ar-cursor.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/aisleriot/ar-cursor.c b/aisleriot/ar-cursor.c
index dda48ef..7d3628f 100644
--- a/aisleriot/ar-cursor.c
+++ b/aisleriot/ar-cursor.c
@@ -169,11 +169,9 @@ ar_cursor_new_from_data (GdkWindow *window,
GdkCursor *cursor;
GdkPixbuf *pixbuf;
- pixbuf = gdk_pixbuf_new_from_data ((const guchar *) data,
- GDK_COLORSPACE_RGB, TRUE, 8,
- CURSOR_WIDTH, CURSOR_HEIGHT,
- CURSOR_ROW_STRIDE,
- NULL, NULL);
+ pixbuf = gdk_pixbuf_new_from_inline (sizeof (data),
+ (const guint8 *) data,
+ FALSE, NULL);
cursor = gdk_cursor_new_from_pixbuf (gdk_window_get_display (window),
pixbuf,
CURSOR_HOT_X, CURSOR_HOT_Y);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]