mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
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:
parent
7a6c44de80
commit
788ebda35b
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue