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@1528 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
2a8379931b
commit
93814d914e
@ -67,8 +67,7 @@ void NitroMain(void)
|
||||
OS_TPrintf("--------------------------------\n"
|
||||
"Shared Font sample.\n");
|
||||
|
||||
(void)LoadSharedFontInit();
|
||||
|
||||
if( LoadSharedFontInit() ) {
|
||||
|
||||
while( !IsFinishedLoadSharedFont() ) {
|
||||
OS_WaitVBlankIntr();
|
||||
@ -85,12 +84,14 @@ void NitroMain(void)
|
||||
DEMODrawFrame(ox, oy, 240, 10 + OS_SHARED_FONT_MAX * 10, GX_RGBA( 0, 31, 0, 1));
|
||||
for (i = 0; i < OS_SHARED_FONT_MAX; ++i)
|
||||
{
|
||||
DEMODrawText(ox + 10, oy + 5 + i * 10, "%s %s load ",
|
||||
DEMODrawText(ox + 10, oy + 5 + i * 10, "%s load %s",
|
||||
OS_GetSharedFontName( (OSSharedFontIndex)i ), g_isSucceededLoad[ i ] ? "suceeded" : "failed");
|
||||
}
|
||||
}
|
||||
DEMO_DrawFlip();
|
||||
OS_WaitVBlankIntr();
|
||||
}
|
||||
|
||||
OS_Terminate();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user