mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-17 18:12:01 +01:00
fix drawing of empty tray space.
This commit is contained in:
parent
382848f556
commit
84321fa158
1 changed files with 16 additions and 11 deletions
|
@ -294,8 +294,10 @@ curses_stringInTile( CursesDrawCtx* dctx, const XP_Rect* rect,
|
|||
{
|
||||
eraseRect( dctx, rect );
|
||||
|
||||
if ( !!letter ) {
|
||||
mvwaddnstr( dctx->boardWin, rect->top+1, rect->left+(rect->width/2),
|
||||
letter, strlen(letter) );
|
||||
}
|
||||
|
||||
if ( !!val ) {
|
||||
int len = strlen( val );
|
||||
|
@ -312,8 +314,10 @@ curses_draw_drawTile( DrawCtx* p_dctx, const XP_Rect* rect,
|
|||
char numbuf[5];
|
||||
char letterbuf[5];
|
||||
char* nump = NULL;
|
||||
char* letterp = NULL;
|
||||
CursesDrawCtx* dctx = (CursesDrawCtx*)p_dctx;
|
||||
|
||||
if ( (flags&CELL_ISEMPTY) == 0 ) {
|
||||
letterbuf[0] = !!textP? *textP: '_'; /* BLANK or bitmap */
|
||||
letterbuf[1] = '\0';
|
||||
if ( val >= 0 ) {
|
||||
|
@ -323,8 +327,9 @@ curses_draw_drawTile( DrawCtx* p_dctx, const XP_Rect* rect,
|
|||
}
|
||||
nump = numbuf;
|
||||
}
|
||||
|
||||
curses_stringInTile( dctx, rect, letterbuf, nump );
|
||||
letterp = letterbuf;
|
||||
}
|
||||
curses_stringInTile( dctx, rect, letterp, nump );
|
||||
|
||||
if ( (flags&CELL_HIGHLIGHT) != 0 ) {
|
||||
mvwaddnstr( dctx->boardWin, rect->top+rect->height-1,
|
||||
|
|
Loading…
Reference in a new issue