gnome-games r7183 - trunk/aisleriot
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r7183 - trunk/aisleriot
- Date: Sun, 13 Jan 2008 22:07:59 +0000 (GMT)
Author: chpe
Date: Sun Jan 13 22:07:59 2008
New Revision: 7183
URL: http://svn.gnome.org/viewvc/gnome-games?rev=7183&view=rev
Log:
Fix focus movement from left into a right-extended slot to focus the first
exposed 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:59 2008
@@ -1790,8 +1790,8 @@
if (new_focus_slot->expanded_right) {
if ((is_rtl && count < 0) ||
(!is_rtl && count > 0)) {
- 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);
+ if (new_focus_slot->cards->len > 0) {
+ new_focus_card_id = ((int) new_focus_slot->cards->len) - ((int) new_focus_slot->exposed);
} else {
new_focus_card_id = -1;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]