mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-26 09:58:20 +01:00
debug changes: change defines to remove gremlin-only code; add missing constants.
This commit is contained in:
parent
1c7455a2e6
commit
182db5a396
4 changed files with 9 additions and 3 deletions
|
@ -153,7 +153,7 @@ void board_invalTrayTiles( BoardCtxt* board, TileBit what );
|
|||
XP_Bool board_juggleTray( BoardCtxt* board );
|
||||
XP_Bool board_beginTrade( BoardCtxt* board );
|
||||
|
||||
#if defined FOR_GREMLINS || defined KEYBOARD_NAV
|
||||
#if defined FOR_GREMLINS
|
||||
XP_Bool board_moveDivider( BoardCtxt* board, XP_Bool right );
|
||||
#endif
|
||||
|
||||
|
|
|
@ -31,9 +31,13 @@ XP_Key_2str( XP_Key key )
|
|||
switch( key ) {
|
||||
CASESTR(XP_KEY_NONE);
|
||||
CASESTR(XP_CURSOR_KEY_DOWN);
|
||||
CASESTR(XP_CURSOR_KEY_ALTDOWN);
|
||||
CASESTR(XP_CURSOR_KEY_RIGHT);
|
||||
CASESTR(XP_CURSOR_KEY_ALTRIGHT);
|
||||
CASESTR(XP_CURSOR_KEY_UP);
|
||||
CASESTR(XP_CURSOR_KEY_ALTUP);
|
||||
CASESTR(XP_CURSOR_KEY_LEFT);
|
||||
CASESTR(XP_CURSOR_KEY_ALTLEFT);
|
||||
CASESTR(XP_CURSOR_KEY_DEL);
|
||||
CASESTR(XP_RAISEFOCUS_KEY);
|
||||
CASESTR(XP_RETURN_KEY);
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include "model.h"
|
||||
#include "game.h"
|
||||
#include "strutils.h"
|
||||
#include "dbgutil.h"
|
||||
|
||||
#ifdef CPLUS
|
||||
extern "C" {
|
||||
|
@ -302,6 +303,7 @@ flipKey( XP_Key key, XP_Bool flip )
|
|||
case XP_CURSOR_KEY_ALTRIGHT:
|
||||
result = XP_CURSOR_KEY_ALTDOWN; break;
|
||||
default:
|
||||
XP_LOGF( "unexpected key: %s", XP_Key_2str(key) );
|
||||
XP_ASSERT(0);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -635,7 +635,7 @@ tray_moveCursor( BoardCtxt* board, XP_Key cursorKey, XP_Bool preflightOnly,
|
|||
break; /* always exit loop if we get here */
|
||||
}
|
||||
|
||||
/* fix this!!! */
|
||||
/* PENDING: don't just inval everything */
|
||||
board->dividerInvalid = XP_TRUE;
|
||||
board_invalTrayTiles( board, ALLTILES );
|
||||
if ( resetEngine ) {
|
||||
|
@ -669,7 +669,7 @@ getFocussedTileCenter( BoardCtxt* board, XP_U16* xp, XP_U16* yp )
|
|||
|
||||
#endif /* KEYBOARD_NAV */
|
||||
|
||||
#if defined FOR_GREMLINS || defined KEYBOARD_NAV
|
||||
#if defined FOR_GREMLINS
|
||||
XP_Bool
|
||||
board_moveDivider( BoardCtxt* board, XP_Bool right )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue