gnome-games r8142 - trunk/aisleriot



Author: jclinton
Date: Tue Oct 21 19:44:44 2008
New Revision: 8142
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8142&view=rev

Log:
Fix the index for highlighted cards in card-cache.c

Modified:
   trunk/aisleriot/card-cache.c

Modified: trunk/aisleriot/card-cache.c
==============================================================================
--- trunk/aisleriot/card-cache.c	(original)
+++ trunk/aisleriot/card-cache.c	Tue Oct 21 19:44:44 2008
@@ -220,7 +220,7 @@
 
   index = card_id;
   if (highlighted)
-    index *= 2;
+    index += GAMES_CARDS_TOTAL;
 
   if (priv->cards[index] == COGL_INVALID_HANDLE) {
     CoglHandle tex;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]