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.
This commit is contained in:
ehouse 2006-02-19 05:48:51 +00:00
parent 7a6c44de80
commit 788ebda35b

View file

@ -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;