From 09b5c44fb46276d6406491d10166c62f8b5c59fb Mon Sep 17 00:00:00 2001 From: Andy2 Date: Fri, 21 Jan 2011 21:29:28 -0800 Subject: [PATCH] add option to prevent switching players by tapping scoreboard (to mimic android) --- xwords4/linux/linuxmain.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xwords4/linux/linuxmain.c b/xwords4/linux/linuxmain.c index 2dbed7ddf..b320a9e2c 100644 --- a/xwords4/linux/linuxmain.c +++ b/xwords4/linux/linuxmain.c @@ -216,6 +216,7 @@ typedef enum { ,CMD_HIDEVALUES ,CMD_SKIPCONFIRM ,CMD_VERTICALSCORE + ,CMD_NOPEEK #ifdef XWFEATURE_SEARCHLIMIT ,CMD_HINTRECT #endif @@ -283,6 +284,7 @@ static CmdInfoRec CmdInfoRecs[] = { ,{ CMD_HIDEVALUES, false, "hide-values", "show letters, not nums, on tiles" } ,{ CMD_SKIPCONFIRM, false, "skip-confirm", "don't confirm before commit" } ,{ CMD_VERTICALSCORE, false, "vertical", "scoreboard is vertical" } + ,{ CMD_NOPEEK, false, "no-peek", "disallow scoreboard tap changing player" } #ifdef XWFEATURE_SEARCHLIMIT ,{ CMD_HINTRECT, false, "hintrect", "enable draggable hint-limits rect" } #endif @@ -1044,6 +1046,9 @@ main( int argc, char** argv ) case CMD_VERTICALSCORE: mainParams.verticalScore = XP_TRUE; break; + case CMD_NOPEEK: + mainParams.allowPeek = XP_FALSE; + break; #ifdef XWFEATURE_SLOW_ROBOT case CMD_SLOWROBOT: if ( !parsePair( optarg, &mainParams.robotThinkMin,