mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +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;
|
XP_Bool needsScroller;
|
||||||
|
|
||||||
GetClientRect( globals->hWnd, &rc );
|
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);
|
height = (XP_U16)(rc.bottom - rc.top);
|
||||||
|
|
||||||
boardHt = height - CE_SCORE_HEIGHT - MIN_TRAY_HEIGHT;
|
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;
|
needsScroller = vScale < MIN_CELL_HEIGHT;
|
||||||
if ( needsScroller ) {
|
if ( needsScroller ) {
|
||||||
vScale = MIN_CELL_HEIGHT;
|
vScale = MIN_CELL_HEIGHT;
|
||||||
}
|
|
||||||
|
|
||||||
boardWidth = width;
|
|
||||||
if ( needsScroller ) {
|
|
||||||
boardWidth -= SCROLLBAR_WIDTH;
|
boardWidth -= SCROLLBAR_WIDTH;
|
||||||
}
|
}
|
||||||
hScale = boardWidth / nCols;
|
hScale = boardWidth / nCols;
|
||||||
|
|
Loading…
Reference in a new issue