From 8a6992132bcc827c6538dcf3d86525008479c3e2 Mon Sep 17 00:00:00 2001 From: ehouse Date: Sun, 28 Sep 2008 16:47:11 +0000 Subject: [PATCH] comments and assertions --- xwords4/wince/cedict.c | 2 -- xwords4/wince/cedraw.c | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/xwords4/wince/cedict.c b/xwords4/wince/cedict.c index df23f8461..71724a684 100755 --- a/xwords4/wince/cedict.c +++ b/xwords4/wince/cedict.c @@ -704,8 +704,6 @@ matchShortName( const wchar_t* wPath, XP_U16 XP_UNUSED(index), void* ctxt ) wchar_t buf[CE_MAX_PATH_LEN+1]; wchar_t* name; - LOG_FUNC(); - XP_ASSERT( !datap->found ); name = wbname( buf, sizeof(buf), wPath ); diff --git a/xwords4/wince/cedraw.c b/xwords4/wince/cedraw.c index b05f1bc51..84b325895 100755 --- a/xwords4/wince/cedraw.c +++ b/xwords4/wince/cedraw.c @@ -305,7 +305,8 @@ makeTestBuf( CEDrawCtx* dctx, XP_UCHAR* buf, XP_UCHAR bufLen, RFIndex index ) XP_U16 nFaces = dict_numTileFaces( dict ); Tile tiles[nFaces]; XP_U16 nOut = 0; - XP_ASSERT( !!dict && nFaces < bufLen ); + XP_ASSERT( !!dict ); + XP_ASSERT( nFaces < bufLen ); if ( dict_hasBlankTile(dict) ) { blank = dict_getBlankTile( dict ); } @@ -1489,6 +1490,8 @@ DLSTATIC void DRAW_FUNC_NAME(dictChanged)( DrawCtx* p_dctx, const DictionaryCtxt* dict ) { CEDrawCtx* dctx = (CEDrawCtx*)p_dctx; + /* May want to inval font cache if new dict has different tiles from + old. Use dict_tilesAreSame(). */ dctx->dict = dict; }