mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-26 09:58:20 +01:00
ce code no longer needs to ask if dict is utf-8, as internally all
are.
This commit is contained in:
parent
ab853ffb3b
commit
899c67f3fe
2 changed files with 0 additions and 16 deletions
|
@ -100,7 +100,6 @@ struct CEDrawCtx {
|
|||
HWND mainWin;
|
||||
CEAppGlobals* globals;
|
||||
const DictionaryCtxt* dict;
|
||||
UINT codePage;
|
||||
|
||||
XP_UCHAR scoreCache[MAX_NUM_PLAYERS][32];
|
||||
|
||||
|
@ -1857,7 +1856,6 @@ DRAW_FUNC_NAME(dictChanged)( DrawCtx* p_dctx, const DictionaryCtxt* dict )
|
|||
ceClearFontCache( dctx );
|
||||
}
|
||||
dctx->dict = dict;
|
||||
dctx->codePage = dict_isUTF8(dict)? CP_UTF8 : CP_ACP;
|
||||
}
|
||||
|
||||
#ifdef DRAW_LINK_DIRECT
|
||||
|
|
|
@ -1078,20 +1078,6 @@ ceMessageBoxChar( CEAppGlobals* XP_UNUSED(globals), const XP_UCHAR* str,
|
|||
return MessageBox( parent, widebuf, title, buttons );
|
||||
} /* ceMessageBoxChar */
|
||||
|
||||
XP_Bool
|
||||
ceCurDictIsUTF8( CEAppGlobals* globals )
|
||||
{
|
||||
XP_Bool result = XP_FALSE;
|
||||
const ModelCtxt* model = globals->game.model;
|
||||
if ( !!model ) {
|
||||
const DictionaryCtxt* dict = model_getDictionary( model );
|
||||
if ( !!dict ) {
|
||||
result = dict_isUTF8( dict );
|
||||
}
|
||||
}
|
||||
return result;
|
||||
} /* ceCurDictIsUTF8 */
|
||||
|
||||
XP_Bool
|
||||
ceGetExeDir( wchar_t* buf, XP_U16 bufLen )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue