gnome-games r7178 - trunk/aisleriot



Author: chpe
Date: Sun Jan 13 22:07:48 2008
New Revision: 7178
URL: http://svn.gnome.org/viewvc/gnome-games?rev=7178&view=rev

Log:
When moving from to the right into a slot, set the focus to the first exposed
card, not the bottommost card.


Modified:
   trunk/aisleriot/board.c

Modified: trunk/aisleriot/board.c
==============================================================================
--- trunk/aisleriot/board.c	(original)
+++ trunk/aisleriot/board.c	Sun Jan 13 22:07:48 2008
@@ -1793,7 +1793,11 @@
   if (new_focus_slot->expanded_right) {
     if ((is_rtl && count < 0) ||
         (!is_rtl && count > 0)) {
-      new_focus_card_id = new_focus_slot_topmost_card_id >= 0 ? 0 : -1;
+      if (new_focus_slot_topmost_card_id >= 0) {
+        new_focus_slot_topmost_card_id = ((int) new_focus_slot->cards->len) - ((int) new_focus_slot->exposed);
+      } else {
+        new_focus_card_id = -1;
+      }
     } else {
       new_focus_card_id = new_focus_slot_topmost_card_id;
     }



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