mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-11-16 07:48:07 +01:00
Get rid of unused param
This commit is contained in:
parent
84ec7e38f2
commit
bc3515272c
6 changed files with 6 additions and 9 deletions
|
@ -2223,8 +2223,7 @@ checkRevealTray( BoardCtxt* board )
|
|||
|
||||
#ifdef POINTER_SUPPORT
|
||||
XP_Bool
|
||||
board_handlePenDown( BoardCtxt* board, XP_U16 x, XP_U16 y, XP_Time when,
|
||||
XP_Bool* handled )
|
||||
board_handlePenDown( BoardCtxt* board, XP_U16 x, XP_U16 y, XP_Bool* handled )
|
||||
{
|
||||
XP_Bool result = XP_FALSE;
|
||||
XP_Bool penDidSomething;
|
||||
|
@ -2263,7 +2262,6 @@ board_handlePenDown( BoardCtxt* board, XP_U16 x, XP_U16 y, XP_Time when,
|
|||
|
||||
board->penDownX = x;
|
||||
board->penDownY = y;
|
||||
board->penDownTime = when;
|
||||
board->penDownObject = onWhich;
|
||||
/* board->inDrag = XP_TRUE; */
|
||||
}
|
||||
|
|
|
@ -128,8 +128,8 @@ void board_popTimerSave( BoardCtxt* board );
|
|||
void board_formatRemainingTiles( BoardCtxt* board, XWStreamCtxt* stream );
|
||||
|
||||
#ifdef POINTER_SUPPORT
|
||||
XP_Bool board_handlePenDown( BoardCtxt* board, XP_U16 x, XP_U16 y,
|
||||
XP_Time when, XP_Bool* handled );
|
||||
XP_Bool board_handlePenDown( BoardCtxt* board, XP_U16 x, XP_U16 y,
|
||||
XP_Bool* handled );
|
||||
XP_Bool board_handlePenMove( BoardCtxt* board, XP_U16 x, XP_U16 y );
|
||||
XP_Bool board_handlePenUp( BoardCtxt* board, XP_U16 x, XP_U16 y, XP_Time when );
|
||||
#endif
|
||||
|
|
|
@ -98,7 +98,6 @@ struct BoardCtxt {
|
|||
|
||||
XP_Rect boardBounds;
|
||||
|
||||
XP_Time penDownTime;
|
||||
BoardObjectType penDownObject;
|
||||
|
||||
XP_Bool needsDrawing;
|
||||
|
|
|
@ -106,7 +106,7 @@ button_press_event( GtkWidget *widget, GdkEventButton *event,
|
|||
globals->mouseDown = XP_TRUE;
|
||||
|
||||
redraw = board_handlePenDown( globals->cGlobals.game.board,
|
||||
event->x, event->y, event->time, &handled );
|
||||
event->x, event->y, &handled );
|
||||
if ( redraw ) {
|
||||
board_draw( globals->cGlobals.game.board );
|
||||
}
|
||||
|
|
|
@ -2249,7 +2249,7 @@ mainViewHandleEvent( EventPtr event )
|
|||
draw = board_handlePenDown( globals->game.board,
|
||||
hresX(globals, event->screenX),
|
||||
hresY(globals, event->screenY),
|
||||
0, &handled );
|
||||
&handled );
|
||||
break;
|
||||
|
||||
case penMoveEvent:
|
||||
|
|
|
@ -1630,7 +1630,7 @@ WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
case WM_LBUTTONDOWN:
|
||||
globals->penDown = XP_TRUE;
|
||||
draw = board_handlePenDown( globals->game.board, LOWORD(lParam),
|
||||
HIWORD(lParam), 0, &handled );
|
||||
HIWORD(lParam), &handled );
|
||||
debug_saveCurState( globals );
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue