mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-04 20:46:28 +01:00
add HintAtts param to draw_drawBoardArrow
This commit is contained in:
parent
87c1d16f0e
commit
c569e5c358
2 changed files with 11 additions and 8 deletions
|
@ -1013,15 +1013,17 @@ board_draw( BoardCtxt* board )
|
|||
BoardArrow* arrow = &board->boardArrow[board->selPlayer];
|
||||
|
||||
if ( arrow->visible ) {
|
||||
XP_U16 col = arrow->col;
|
||||
XP_U16 row = arrow->row;
|
||||
XP_Bool drawVertical =
|
||||
(arrow->vert == XP_CURSOR_KEY_DOWN) ^ board->isFlipped;
|
||||
if ( getCellRect( board, arrow->col, arrow->row,
|
||||
&cursorRect ) ) {
|
||||
if ( getCellRect( board, col, row, &cursorRect ) ) {
|
||||
XWBonusType bonus;
|
||||
bonus = util_getSquareBonus( board->util, model, arrow->col,
|
||||
arrow->row );
|
||||
HintAtts hintAtts;
|
||||
bonus = util_getSquareBonus( board->util, model, col, row );
|
||||
hintAtts = figureHintAtts( board, col, row );
|
||||
draw_drawBoardArrow( board->draw, &cursorRect,
|
||||
bonus, drawVertical );
|
||||
bonus, drawVertical, hintAtts );
|
||||
}
|
||||
}
|
||||
#ifdef KEYBOARD_NAV
|
||||
|
|
|
@ -119,7 +119,8 @@ typedef struct DrawCtxVTable {
|
|||
void (*m_draw_clearRect)( DrawCtx* dctx, XP_Rect* rect );
|
||||
|
||||
void (*m_draw_drawBoardArrow)( DrawCtx* dctx, XP_Rect* rect,
|
||||
XWBonusType bonus, XP_Bool vert );
|
||||
XWBonusType bonus, XP_Bool vert,
|
||||
HintAtts hintAtts );
|
||||
#ifdef KEY_SUPPORT
|
||||
void (*m_draw_drawTrayCursor)( DrawCtx* dctx, XP_Rect* rect );
|
||||
void (*m_draw_drawBoardCursor)( DrawCtx* dctx, XP_Rect* rect );
|
||||
|
@ -201,8 +202,8 @@ struct DrawCtx {
|
|||
|
||||
#define draw_clearRect( dc, rect ) (dc)->vtable->m_draw_clearRect((dc),(rect))
|
||||
|
||||
#define draw_drawBoardArrow( dc, r, b, v ) \
|
||||
(dc)->vtable->m_draw_drawBoardArrow((dc),(r),(b), (v))
|
||||
#define draw_drawBoardArrow( dc, r, b, v, h ) \
|
||||
(dc)->vtable->m_draw_drawBoardArrow((dc),(r),(b), (v), (h))
|
||||
#ifdef KEY_SUPPORT
|
||||
# define draw_drawTrayCursor( dc, r ) \
|
||||
(dc)->vtable->m_draw_drawTrayCursor((dc),(r))
|
||||
|
|
Loading…
Add table
Reference in a new issue