フォントロードに失敗した時の挙動の修正。

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1528 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
yosiokat 2008-05-26 09:30:02 +00:00
parent 2a8379931b
commit 93814d914e

View File

@ -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();
}