bug: hide arrow when it can't be moved in case where tile comes via keyboard

This commit is contained in:
ehouse 2004-10-05 02:32:58 +00:00
parent a5e3f3de24
commit b7dd4fd50c

View file

@ -1587,6 +1587,7 @@ drawCell( BoardCtxt* board, XP_U16 col, XP_U16 row, XP_Bool skipBlanks )
XP_SNPRINTF( ch, sizeof(ch), (XP_UCHAR*)"%d", val );
} else if ( dict_faceIsBitmap( dict, tile ) ) {
bitmap = dict_getFaceBitmap( dict, tile, XP_FALSE );
XP_ASSERT( !!bitmap );
textP = (XP_UCHAR*)NULL;
} else {
dict_tilesToString( dict, &tile, 1, ch );
@ -2553,8 +2554,9 @@ board_handleKey( BoardCtxt* board, XP_Key key )
XP_ASSERT( key >= XP_KEY_LAST );
result = trayVisible && moveKeyTileToBoard( board, key );
if ( result ) {
(void)advanceArrow( board );
if ( result && !advanceArrow( board ) ) {
setArrowVisible( board, XP_FALSE );
}
} /* switch */