mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
draw multi-type cell contents correctly
As long as it's not too long for the space! But the curses draw function that knows how to measure the length-in-bytes of a multi-byte string doesn't seem to be available to me. So pass -1 as the length and it'll draw correctly out to the NULL terminator.
This commit is contained in:
parent
b96c9cc438
commit
b78ad28d0e
1 changed files with 1 additions and 1 deletions
|
@ -382,7 +382,7 @@ curses_draw_drawCell( DrawCtx* p_dctx, const XP_Rect* rect,
|
|||
} /* switch */
|
||||
}
|
||||
|
||||
mvwaddnstr( dctx->boardWin, rect->top, rect->left, loc, rect->width );
|
||||
mvwaddnstr( dctx->boardWin, rect->top, rect->left, loc, -1 );
|
||||
|
||||
if ( highlight ) {
|
||||
wstandend( dctx->boardWin );
|
||||
|
|
Loading…
Reference in a new issue