From 2910bab3a005b8a34044cfe90e2aad132cf6db76 Mon Sep 17 00:00:00 2001 From: ehouse Date: Sat, 2 Feb 2008 17:21:57 +0000 Subject: [PATCH] fix perimeter focus clearing and board size setting. --- xwords4/linux/cursesdraw.c | 3 +++ xwords4/linux/cursesmain.c | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/xwords4/linux/cursesdraw.c b/xwords4/linux/cursesdraw.c index b3984964b..c6085079c 100644 --- a/xwords4/linux/cursesdraw.c +++ b/xwords4/linux/cursesdraw.c @@ -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: diff --git a/xwords4/linux/cursesmain.c b/xwords4/linux/cursesmain.c index 0cf975874..76c2ef914 100644 --- a/xwords4/linux/cursesmain.c +++ b/xwords4/linux/cursesmain.c @@ -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;