gnome-games r8460 - trunk/libgames-support
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r8460 - trunk/libgames-support
- Date: Tue, 6 Jan 2009 18:19:20 +0000 (UTC)
Author: chpe
Date: Tue Jan 6 18:19:20 2009
New Revision: 8460
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8460&view=rev
Log:
Initialise the width and height in the nonscalable case too. Makes the
old bonded.png work finally.
Modified:
trunk/libgames-support/games-card-theme-sliced.c
Modified: trunk/libgames-support/games-card-theme-sliced.c
==============================================================================
--- trunk/libgames-support/games-card-theme-sliced.c (original)
+++ trunk/libgames-support/games-card-theme-sliced.c Tue Jan 6 18:19:20 2009
@@ -85,6 +85,9 @@
/* This is true because in the non-scalable case GamesPreimage directly holds a GdkPixbuf */
g_assert (theme->source != NULL);
+
+ theme->subsize.width = gdk_pixbuf_get_width (theme->source) / 13;
+ theme->subsize.height = gdk_pixbuf_get_height (theme->source) / 5;
}
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]