diff --git a/xwords4/linux/cursesdraw.c b/xwords4/linux/cursesdraw.c index cd56dfc08..dfe7b33b0 100644 --- a/xwords4/linux/cursesdraw.c +++ b/xwords4/linux/cursesdraw.c @@ -109,7 +109,7 @@ curses_draw_trayBegin( DrawCtx* XP_UNUSED(p_dctx), return XP_TRUE; } /* draw_finish */ -static void +static XP_Bool curses_draw_scoreBegin( DrawCtx* p_dctx, const XP_Rect* rect, XP_U16 XP_UNUSED(numPlayers), const XP_S16* const XP_UNUSED(scores), @@ -118,6 +118,7 @@ curses_draw_scoreBegin( DrawCtx* p_dctx, const XP_Rect* rect, { CursesDrawCtx* dctx = (CursesDrawCtx*)p_dctx; eraseRect( dctx, rect ); + return XP_TRUE; } /* curses_draw_scoreBegin */ static void diff --git a/xwords4/linux/gtkdraw.c b/xwords4/linux/gtkdraw.c index ba5f57678..a236079ad 100644 --- a/xwords4/linux/gtkdraw.c +++ b/xwords4/linux/gtkdraw.c @@ -704,7 +704,7 @@ gtk_draw_drawBoardArrow( DrawCtx* p_dctx, const XP_Rect* rectP, drawHintBorders( dctx, rectP, hintAtts ); } /* gtk_draw_drawBoardCursor */ -static void +static XP_Bool gtk_draw_scoreBegin( DrawCtx* p_dctx, const XP_Rect* rect, XP_U16 XP_UNUSED(numPlayers), const XP_S16* const XP_UNUSED(scores), @@ -716,6 +716,7 @@ gtk_draw_scoreBegin( DrawCtx* p_dctx, const XP_Rect* rect, /* gdk_gc_set_clip_rectangle( dctx->drawGC, (GdkRectangle*)rect ); */ gtkEraseRect( dctx, rect ); dctx->scoreIsVertical = rect->height > rect->width; + return XP_TRUE; } /* gtk_draw_scoreBegin */ static PangoLayout*