mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-04 20:46:28 +01:00
don't zoom down below two cells so we can still drag-scroll
This commit is contained in:
parent
41b29c9ba3
commit
339fc5a9e6
1 changed files with 1 additions and 1 deletions
|
@ -543,7 +543,7 @@ board_zoom( BoardCtxt* board, XP_S16 zoomBy )
|
|||
XP_Bool changed;
|
||||
XP_S16 zoomCount = board->zoomCount;
|
||||
|
||||
XP_U16 maxCount = model_numCols( board->model ) - 1;
|
||||
XP_U16 maxCount = model_numCols( board->model ) - 2; /* 2 for scrolling */
|
||||
if ( board->boardBounds.width > board->boardBounds.height ) {
|
||||
XP_U16 ratio = board->boardBounds.width / board->boardBounds.height;
|
||||
maxCount -= ratio;
|
||||
|
|
Loading…
Add table
Reference in a new issue