gnome-games r8478 - trunk/aisleriot
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r8478 - trunk/aisleriot
- Date: Tue, 6 Jan 2009 18:19:55 +0000 (UTC)
Author: chpe
Date: Tue Jan 6 18:19:55 2009
New Revision: 8478
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8478&view=rev
Log:
Replace gtk_clutter_texture_set_from_pixbuf by just calling
clutter_texture_set_from_rgb_data directly. Fixes missing prototype
warning also.
Modified:
trunk/aisleriot/board.c
Modified: trunk/aisleriot/board.c
==============================================================================
--- trunk/aisleriot/board.c (original)
+++ trunk/aisleriot/board.c Tue Jan 6 18:19:55 2009
@@ -418,8 +418,19 @@
priv->baize_actor, NULL);
}
- gtk_clutter_texture_set_from_pixbuf (CLUTTER_TEXTURE (priv->baize_actor),
- pixbuf);
+ clutter_texture_set_from_rgb_data (CLUTTER_TEXTURE (priv->baize_actor),
+ gdk_pixbuf_get_pixels (pixbuf),
+ gdk_pixbuf_get_has_alpha (pixbuf),
+ gdk_pixbuf_get_width (pixbuf),
+ gdk_pixbuf_get_height (pixbuf),
+ gdk_pixbuf_get_rowstride (pixbuf),
+ gdk_pixbuf_get_has_alpha (pixbuf) ? 4 : 3,
+ 0,
+ &error);
+ if (error) {
+ g_warning ("Failed to set texture from pixbuf: %s", error->message);
+ g_error_free (error);
+ }
g_object_unref (pixbuf);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]