mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +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
13e521b879
commit
b72309f947
1 changed files with 5 additions and 2 deletions
|
@ -43,19 +43,22 @@ setBlankTile( DictionaryCtxt* dctx )
|
||||||
|
|
||||||
for ( i = 0; i < dctx->nFaces; ++i ) {
|
for ( i = 0; i < dctx->nFaces; ++i ) {
|
||||||
if ( dctx->faces16[i] == 0 ) {
|
if ( dctx->faces16[i] == 0 ) {
|
||||||
|
XP_ASSERT( dctx->blankTile == -1 ); /* only one passes test? */
|
||||||
dctx->blankTile = (XP_S8)i;
|
dctx->blankTile = (XP_S8)i;
|
||||||
|
#ifndef DEBUG
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} /* setBlankTile */
|
} /* setBlankTile */
|
||||||
|
|
||||||
#if defined BLANKS_FIRST || defined DEBUG
|
/* #if defined BLANKS_FIRST || defined DEBUG */
|
||||||
XP_Bool
|
XP_Bool
|
||||||
dict_hasBlankTile( const DictionaryCtxt* dict )
|
dict_hasBlankTile( const DictionaryCtxt* dict )
|
||||||
{
|
{
|
||||||
return dict->blankTile >= 0;
|
return dict->blankTile >= 0;
|
||||||
} /* dict_hasBlankTile */
|
} /* dict_hasBlankTile */
|
||||||
#endif
|
/* #endif */
|
||||||
|
|
||||||
Tile
|
Tile
|
||||||
dict_getBlankTile( const DictionaryCtxt* dict )
|
dict_getBlankTile( const DictionaryCtxt* dict )
|
||||||
|
|
Loading…
Reference in a new issue