let cells be taller than wide too (take 2)

This commit is contained in:
Eric House 2019-09-10 16:39:19 +03:00
parent d3d37c62d5
commit f12531e40b

View file

@ -585,6 +585,17 @@ board_figureLayout( BoardCtxt* board, const CurGameInfo* gi,
if ( 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
XP_USE(colPctMax);
#endif