mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-28 07:58:08 +01:00
draw scoreboard entries centered
This commit is contained in:
parent
b43855a313
commit
123141e0df
1 changed files with 3 additions and 1 deletions
|
@ -278,7 +278,9 @@ curses_draw_score_drawPlayer( DrawCtx* p_dctx, const XP_Rect* rInner,
|
|||
formatScoreText( buf, dsi, rInner, lines );
|
||||
int ii;
|
||||
for ( ii = 0; ii < VSIZE(lines) && !!lines[ii]; ++ii ) {
|
||||
mvwprintw( dctx->boardWin, ii + y, rOuter->left, lines[ii] );
|
||||
char* line = lines[ii];
|
||||
int left = rOuter->left + ((rOuter->width - strlen(line)) / 2);
|
||||
mvwprintw( dctx->boardWin, ii + y, left, line );
|
||||
}
|
||||
|
||||
if ( (dsi->flags&CELL_ISCURSOR) != 0 ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue