Don't draw hint rect, or start drag to change it, if hints are disallowed.

This commit is contained in:
ehouse 2008-12-01 13:06:37 +00:00
parent 7fd26c39fc
commit 206b56a50a
2 changed files with 5 additions and 2 deletions

View file

@ -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 */

View file

@ -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 ) {