mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
フォント圧縮テスト:SDKのフォントインデックス修正に合わせてローカルのsharedFont.hを修正。ハフマン符号に対応。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1903 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
27c4d50e00
commit
ca5b3bbedc
@ -29,9 +29,9 @@ extern "C" {
|
|||||||
|
|
||||||
// 共有フォントインデックス
|
// 共有フォントインデックス
|
||||||
typedef enum OSSharedFontIndex {
|
typedef enum OSSharedFontIndex {
|
||||||
OS_SHARED_FONT_WW_S = 0,
|
OS_SHARED_FONT_WW_L = 0,
|
||||||
OS_SHARED_FONT_WW_M = 1,
|
OS_SHARED_FONT_WW_M = 1,
|
||||||
OS_SHARED_FONT_WW_L = 2,
|
OS_SHARED_FONT_WW_S = 2,
|
||||||
OS_SHARED_FONT_MAX = 3
|
OS_SHARED_FONT_MAX = 3
|
||||||
}OSSharedFontIndex;
|
}OSSharedFontIndex;
|
||||||
|
|
||||||
|
|||||||
@ -133,7 +133,9 @@ void LoadSharedFont( STicks *pTicks )
|
|||||||
OS_TPrintf( " uncompress font\n" );
|
OS_TPrintf( " uncompress font\n" );
|
||||||
#if (FORWARD_COMPRESS==1)
|
#if (FORWARD_COMPRESS==1)
|
||||||
//comperr = MI_SecureUncompressLZ( s_pCompressedBuffer[i], (u32)compsize, s_pFontBuffer[i], (u32)origsize );
|
//comperr = MI_SecureUncompressLZ( s_pCompressedBuffer[i], (u32)compsize, s_pFontBuffer[i], (u32)origsize );
|
||||||
comperr = MI_SecureUncompressHuffman( s_pCompressedBuffer[i], (u32)compsize, s_pFontBuffer[i], (u32)origsize );
|
//comperr = MI_SecureUncompressHuffman( s_pCompressedBuffer[i], (u32)compsize, s_pFontBuffer[i], (u32)origsize );
|
||||||
|
MI_UncompressHuffman( s_pCompressedBuffer[i], s_pFontBuffer[i] );
|
||||||
|
comperr = MI_ERR_SUCCESS;
|
||||||
#else
|
#else
|
||||||
comperr = MI_SecureUncompressBLZ( s_pFontBuffer[i], (u32)compsize, (u32)origsize );
|
comperr = MI_SecureUncompressBLZ( s_pFontBuffer[i], (u32)compsize, (u32)origsize );
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user