mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
fix compile when XWFEATURE_RAISETILE defined
Doesn't seem to work, and that's not addressed by this.
This commit is contained in:
parent
aa5bacdd5f
commit
3760d735bc
3 changed files with 6 additions and 8 deletions
|
@ -1340,7 +1340,7 @@ timerFiredForPen( BoardCtxt* board, XWEnv xwe )
|
|||
putting up a square bonus if we're on a square with
|
||||
something that can be dragged */
|
||||
#ifdef XWFEATURE_RAISETILE
|
||||
draw = dragDropSetAdd( board );
|
||||
draw = dragDropSetAdd( board, xwe );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -1461,7 +1461,7 @@ p_tray_timerFired( void* closure, XWEnv xwe, XWTimerReason why )
|
|||
XP_Bool draw = XP_FALSE;
|
||||
BoardCtxt* board = (BoardCtxt*)closure;
|
||||
if ( why == TIMER_PENDOWN ) {
|
||||
draw = dragDropSetAdd( board );
|
||||
draw = dragDropSetAdd( board, xwe );
|
||||
}
|
||||
return draw;
|
||||
}
|
||||
|
|
|
@ -348,13 +348,11 @@ dragDropSetAdd( BoardCtxt* board, XWEnv xwe )
|
|||
XP_Bool draw;
|
||||
draw = dragDropInProgress(board) && !dragDropIsDividerDrag( board )
|
||||
&& !dragDropHasMoved( board );
|
||||
if ( draw ) {
|
||||
if ( draw ) {
|
||||
ds->yyAdd = (board->trayBounds.height * 2) / 3;
|
||||
draw = dragDropContinueImpl( board, xwe, board->penDownX,
|
||||
board->penDownY, NULL );
|
||||
}
|
||||
}
|
||||
return draw;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -38,7 +38,7 @@ XP_Bool dragDropEnd( BoardCtxt* board, XWEnv xwe, XP_U16 xx, XP_U16 yy,
|
|||
XP_Bool* dragged );
|
||||
|
||||
#ifdef XWFEATURE_RAISETILE
|
||||
XP_Bool dragDropSetAdd( BoardCtxt* board );
|
||||
XP_Bool dragDropSetAdd( BoardCtxt* board, XWEnv xwe );
|
||||
#endif
|
||||
|
||||
XP_Bool dragDropGetBoardTile( const BoardCtxt* board, XP_U16* col, XP_U16* row );
|
||||
|
|
Loading…
Reference in a new issue