mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-28 07:58:08 +01:00
fix perimeter focus clearing and board size setting.
This commit is contained in:
parent
b98b7fd993
commit
2910bab3a0
2 changed files with 6 additions and 2 deletions
|
@ -306,6 +306,9 @@ curses_draw_drawCell( DrawCtx* p_dctx, const XP_Rect* rect,
|
|||
XP_ASSERT( rect->width < sizeof(loc) );
|
||||
XP_MEMCPY( loc, letter, strlen(letter) );
|
||||
|
||||
/* in case it's not 1x1 */
|
||||
eraseRect( dctx, rect );
|
||||
|
||||
if ( letter[0] == LETTER_NONE ) {
|
||||
switch ( bonus ) {
|
||||
case BONUS_DOUBLE_LETTER:
|
||||
|
|
|
@ -1062,6 +1062,7 @@ drawMenuLargeOrSmall( CursesAppGlobals* globals, const MenuList* menuList )
|
|||
#else
|
||||
MenuList* lists[] = { g_sharedMenuList, menuList, NULL };
|
||||
#endif
|
||||
wclear( globals->menuWin );
|
||||
drawMenuFromList( globals->menuWin, lists, 0, 0 );
|
||||
wrefresh( globals->menuWin );
|
||||
}
|
||||
|
@ -1244,8 +1245,8 @@ positionSizeStuff( CursesAppGlobals* globals, int width, int height )
|
|||
int remWidth = width;
|
||||
|
||||
board_setPos( board, BOARD_OFFSET, BOARD_OFFSET, XP_FALSE );
|
||||
cellWidth = CURSES_CELL_HT;
|
||||
cellHt = CURSES_CELL_WIDTH;
|
||||
cellWidth = CURSES_CELL_WIDTH;
|
||||
cellHt = CURSES_CELL_HT;
|
||||
board_setScale( board, cellWidth, cellHt );
|
||||
scoreLeft = (cellWidth * MAX_COLS);// + BOARD_SCORE_PADDING;
|
||||
remWidth -= cellWidth * MAX_COLS;
|
||||
|
|
Loading…
Add table
Reference in a new issue