From 788ebda35b91e99e12cdc17a34d3b18b75a00b32 Mon Sep 17 00:00:00 2001 From: ehouse Date: Sun, 19 Feb 2006 05:48:51 +0000 Subject: [PATCH] tweak code so board is right width in release build. Looks as if I'm working around a code-gen bug, but I haven't looked at the asm output. --- xwords4/wince/cemain.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/xwords4/wince/cemain.c b/xwords4/wince/cemain.c index aaded6aa2..e848e0f78 100755 --- a/xwords4/wince/cemain.c +++ b/xwords4/wince/cemain.c @@ -394,7 +394,7 @@ figureBoardParms( CEAppGlobals* globals, XP_U16 nCols, CEBoardParms* bparms ) XP_Bool needsScroller; GetClientRect( globals->hWnd, &rc ); - width = (XP_U16)(rc.right - rc.left); + boardWidth = width = (XP_U16)(rc.right - rc.left); height = (XP_U16)(rc.bottom - rc.top); boardHt = height - CE_SCORE_HEIGHT - MIN_TRAY_HEIGHT; @@ -405,10 +405,6 @@ figureBoardParms( CEAppGlobals* globals, XP_U16 nCols, CEBoardParms* bparms ) needsScroller = vScale < MIN_CELL_HEIGHT; if ( needsScroller ) { vScale = MIN_CELL_HEIGHT; - } - - boardWidth = width; - if ( needsScroller ) { boardWidth -= SCROLLBAR_WIDTH; } hScale = boardWidth / nCols;