mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
Don't draw hint rect, or start drag to change it, if hints are disallowed.
This commit is contained in:
parent
438be9dd2a
commit
f8870da48f
2 changed files with 5 additions and 2 deletions
|
@ -168,7 +168,9 @@ figureHintAtts( BoardCtxt* board, XP_U16 col, XP_U16 row )
|
|||
HintAtts result = HINT_BORDER_NONE;
|
||||
|
||||
/* while lets us break to exit... */
|
||||
while ( board->trayVisState == TRAY_REVEALED && board->gi->allowHintRect ) {
|
||||
while ( board->trayVisState == TRAY_REVEALED
|
||||
&& !board->gi->hintsNotAllowed
|
||||
&& board->gi->allowHintRect ) {
|
||||
BdHintLimits limits;
|
||||
if ( dragDropGetHintLimits( board, &limits ) ) {
|
||||
/* do nothing */
|
||||
|
|
|
@ -87,7 +87,8 @@ ddStartBoard( BoardCtxt* board, XP_U16 xx, XP_U16 yy )
|
|||
XP_Bool canScroll = board->lastVisibleRow < model_numRows(board->model);
|
||||
if ( 0 ) {
|
||||
#ifdef XWFEATURE_SEARCHLIMIT
|
||||
} else if ( board->gi->allowHintRect && trayVisible ) {
|
||||
} else if ( !board->gi->hintsNotAllowed && board->gi->allowHintRect
|
||||
&& trayVisible ) {
|
||||
if ( !util_altKeyDown(board->util) ) {
|
||||
ds->dtype = DT_HINTRGN;
|
||||
} else if ( canScroll ) {
|
||||
|
|
Loading…
Reference in a new issue