mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
let cells be taller than wide too (take 2)
This commit is contained in:
parent
d3d37c62d5
commit
f12531e40b
1 changed files with 11 additions and 0 deletions
|
@ -585,6 +585,17 @@ board_figureLayout( BoardCtxt* board, const CurGameInfo* gi,
|
||||||
if ( ldims.boardWidth > bWidth ) {
|
if ( ldims.boardWidth > bWidth ) {
|
||||||
ldims.boardWidth = bWidth;
|
ldims.boardWidth = bWidth;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( 0 == nToScroll &&
|
||||||
|
bHeight > (ldims.scoreHt + ldims.boardHt + ldims.trayHt) ) {
|
||||||
|
XP_U16 oldTop = ldims.trayTop;
|
||||||
|
ldims.trayTop = ldims.scoreHt + (ldims.boardHt * colPctMax) / 100;
|
||||||
|
if ( ldims.trayTop + ldims.trayHt > bHeight ) {
|
||||||
|
ldims.trayTop = bHeight - ldims.trayHt;
|
||||||
|
}
|
||||||
|
XP_ASSERT( oldTop <= ldims.trayTop );
|
||||||
|
ldims.height += ldims.trayTop - oldTop;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
XP_USE(colPctMax);
|
XP_USE(colPctMax);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue