mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-11-16 07:48:07 +01:00
catch up with API changes
This commit is contained in:
parent
6ebce9ff5e
commit
e3cadfbf79
5 changed files with 14 additions and 7 deletions
|
@ -57,7 +57,8 @@ curses_draw_destroyCtxt( DrawCtx* p_dctx )
|
|||
} /* draw_setup */
|
||||
|
||||
static XP_Bool
|
||||
curses_draw_boardBegin( DrawCtx* p_dctx, XP_Rect* rect, XP_Bool hasfocus )
|
||||
curses_draw_boardBegin( DrawCtx* p_dctx, DictionaryCtxt* dict, XP_Rect* rect,
|
||||
XP_Bool hasfocus )
|
||||
{
|
||||
CursesDrawCtx* dctx = (CursesDrawCtx*)p_dctx;
|
||||
if ( hasfocus ) {
|
||||
|
|
|
@ -241,7 +241,8 @@ gtk_draw_destroyCtxt( DrawCtx* p_dctx )
|
|||
|
||||
|
||||
static XP_Bool
|
||||
gtk_draw_boardBegin( DrawCtx* p_dctx, XP_Rect* rect, XP_Bool hasfocus )
|
||||
gtk_draw_boardBegin( DrawCtx* p_dctx, DictionaryCtxt* dict,
|
||||
XP_Rect* rect, XP_Bool hasfocus )
|
||||
{
|
||||
GdkRectangle gdkrect;
|
||||
GtkDrawCtx* dctx = (GtkDrawCtx*)p_dctx;
|
||||
|
|
|
@ -395,9 +395,12 @@ expose_event( GtkWidget* widget,
|
|||
widget->allocation.width,
|
||||
widget->allocation.height+widget->allocation.y );
|
||||
*/
|
||||
board_invalRect( globals->cGlobals.game.board, (XP_Rect*)&event->area );
|
||||
/* I want to inval only the area that's exposed, but the rect is always
|
||||
empty, even when clearly shouldn't be. Need to investigate. Until
|
||||
fixed, use board_invalAll to ensure board is drawn.*/
|
||||
/* board_invalRect( globals->cGlobals.game.board, (XP_Rect*)&event->area ); */
|
||||
|
||||
/* board_invalAll( globals->cGlobals.game.board ); */
|
||||
board_invalAll( globals->cGlobals.game.board );
|
||||
board_draw( globals->cGlobals.game.board );
|
||||
|
||||
/* gdk_draw_pixmap( widget->window, */
|
||||
|
@ -617,7 +620,9 @@ static void
|
|||
handle_resend( GtkWidget* widget, GtkAppGlobals* globals )
|
||||
{
|
||||
CommsCtxt* comms = globals->cGlobals.game.comms;
|
||||
comms_resendAll( comms );
|
||||
if ( comms != NULL ) {
|
||||
comms_resendAll( comms );
|
||||
}
|
||||
} /* handle_resend */
|
||||
|
||||
#ifdef DEBUG
|
||||
|
|
|
@ -225,7 +225,7 @@ usage( char* appName, char* msg )
|
|||
}
|
||||
|
||||
XP_S16
|
||||
linux_tcp_send( XP_U8* buf, XP_U16 buflen, CommsAddrRec* addrRec,
|
||||
linux_tcp_send( XP_U8* buf, XP_U16 buflen, const CommsAddrRec* addrRec,
|
||||
void* closure )
|
||||
{
|
||||
CommonGlobals* globals = (CommonGlobals*)closure;
|
||||
|
|
|
@ -37,7 +37,7 @@ typedef struct LinuxBMStruct {
|
|||
DictionaryCtxt* linux_dictionary_make( MPFORMAL char* dictFileName );
|
||||
|
||||
int initListenerSocket( int port );
|
||||
XP_S16 linux_tcp_send( XP_U8* buf, XP_U16 buflen, CommsAddrRec* addrRec,
|
||||
XP_S16 linux_tcp_send( XP_U8* buf, XP_U16 buflen, const CommsAddrRec* addrRec,
|
||||
void* closure );
|
||||
int linux_init_socket( CommonGlobals* cGlobals );
|
||||
int linux_receive( CommonGlobals* cGlobals, unsigned char* buf, int bufSize );
|
||||
|
|
Loading…
Reference in a new issue