mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
アプリタイトル表示切り替え判定をミスっていたので修正
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1040 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
9515a61e15
commit
19743970e8
@ -325,6 +325,27 @@ static void SetOAMAttr( void )
|
||||
SetAffineAnimation( &flipparam );
|
||||
}
|
||||
|
||||
static BOOL my_EqualNString(NNSG2dChar *src, NNSG2dChar *dst, int size )
|
||||
{
|
||||
int l;
|
||||
for( l=0;l<size;l++)
|
||||
{
|
||||
if(*src != *dst)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
src++;
|
||||
dst++;
|
||||
|
||||
if(*src == 0x0000)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// バナー関係の描画
|
||||
// 思ったよりVRAMへのロードが高速だったので、
|
||||
// 特に難しいことを考えず表示するイメージデータだけ毎フレームVRAMにロード
|
||||
@ -349,7 +370,7 @@ static void BannerDraw(int selected, TitleProperty *titleprop)
|
||||
|
||||
// アプリ名表示
|
||||
str = ((TWLBannerFile *)titleprop[selected].pBanner)->v1.gameName[ LCFG_TSD_GetLanguage() ];
|
||||
if( STD_CompareNString( (const char *)old_gameName, (const char *)str, BANNER_LANG_LENGTH * 2 ) != 0 )
|
||||
if( !my_EqualNString( old_gameName, str, BANNER_LANG_LENGTH * 2 ) )
|
||||
{
|
||||
NNSG2dChar *str = ((TWLBannerFile *)titleprop[selected].pBanner)->v1.gameName[ LCFG_TSD_GetLanguage() ];
|
||||
NNSG2dTextRect rect = NNS_G2dTextCanvasGetTextRect( &gTextCanvas, str );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user