mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
Had to comment out BLANKS_FIRST to compile new wince font code, so
assert that blank test catches only one tile per dict.
This commit is contained in:
parent
61a3602dc5
commit
d2cb36029b
1 changed files with 5 additions and 2 deletions
|
@ -43,19 +43,22 @@ setBlankTile( DictionaryCtxt* dctx )
|
|||
|
||||
for ( i = 0; i < dctx->nFaces; ++i ) {
|
||||
if ( dctx->faces16[i] == 0 ) {
|
||||
XP_ASSERT( dctx->blankTile == -1 ); /* only one passes test? */
|
||||
dctx->blankTile = (XP_S8)i;
|
||||
#ifndef DEBUG
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
} /* setBlankTile */
|
||||
|
||||
#if defined BLANKS_FIRST || defined DEBUG
|
||||
/* #if defined BLANKS_FIRST || defined DEBUG */
|
||||
XP_Bool
|
||||
dict_hasBlankTile( const DictionaryCtxt* dict )
|
||||
{
|
||||
return dict->blankTile >= 0;
|
||||
} /* dict_hasBlankTile */
|
||||
#endif
|
||||
/* #endif */
|
||||
|
||||
Tile
|
||||
dict_getBlankTile( const DictionaryCtxt* dict )
|
||||
|
|
Loading…
Reference in a new issue