mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
miscのInitAllocatorでヒープ領域をゼロクリアするよう変更
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@311 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
eb67ac4d0b
commit
84cd86d19d
@ -185,7 +185,7 @@ static void SetDefaultBanner( TitleProperty *titleprop )
|
|||||||
titleprop[l].pBanner = no_card_banner;
|
titleprop[l].pBanner = no_card_banner;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(titleprop[l].pBanner == NULL) //IDがゼロじゃないのにバナーがNULLならノーバナー
|
else if(titleprop[l].pBanner == NULL) //isValidフラグがTRUEでバナーがNULLならノーバナー
|
||||||
{
|
{
|
||||||
titleprop[l].pBanner = nobanner_banner;
|
titleprop[l].pBanner = nobanner_banner;
|
||||||
}
|
}
|
||||||
@ -587,7 +587,8 @@ static void DrawScrollBar( TitleProperty *pTitleList )
|
|||||||
static int col_count_d = 1;
|
static int col_count_d = 1;
|
||||||
static const int COL_FLAME_MAX = 30;
|
static const int COL_FLAME_MAX = 30;
|
||||||
static const int COL_NUM = 15;
|
static const int COL_NUM = 15;
|
||||||
static const int COL_DIV = COL_FLAME_MAX / COL_NUM;
|
static const int COL_DIV = (COL_FLAME_MAX / COL_NUM);
|
||||||
|
int colc_cold;
|
||||||
|
|
||||||
col_count += col_count_d;
|
col_count += col_count_d;
|
||||||
if(col_count < 0)
|
if(col_count < 0)
|
||||||
@ -601,11 +602,12 @@ static void DrawScrollBar( TitleProperty *pTitleList )
|
|||||||
col_count_d = -1;
|
col_count_d = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
colc_cold = col_count/COL_DIV;
|
||||||
for(l=0; l<LAUNCHER_TITLE_LIST_NUM; l++)
|
for(l=0; l<LAUNCHER_TITLE_LIST_NUM; l++)
|
||||||
{
|
{
|
||||||
PutStringUTF16( (int)(BAR_ZERO_X + l * (ITEM_SIZE + ITEM_INTERVAL)),
|
PutStringUTF16( (int)(BAR_ZERO_X + l * (ITEM_SIZE + ITEM_INTERVAL)),
|
||||||
BAR_ZERO_Y,
|
BAR_ZERO_Y,
|
||||||
(pTitleList[l].flags.isValid ? (TXT_UCOLOR_G0 + col_count/COL_DIV) : TXT_COLOR_BLACK),
|
(pTitleList[l].flags.isValid ? (TXT_UCOLOR_G0 + colc_cold) : TXT_COLOR_BLACK),
|
||||||
(const u16 *)L"<EFBFBD>E" );
|
(const u16 *)L"<EFBFBD>E" );
|
||||||
}
|
}
|
||||||
for(l=0; l<4; l++)
|
for(l=0; l<4; l++)
|
||||||
|
|||||||
@ -162,6 +162,8 @@ void InitAllocator( void )
|
|||||||
void* heapMemory = OS_AllocFromMainArenaLo( heapSize, 16 );
|
void* heapMemory = OS_AllocFromMainArenaLo( heapSize, 16 );
|
||||||
NNSFndHeapHandle heapHandle;
|
NNSFndHeapHandle heapHandle;
|
||||||
SDK_NULL_ASSERT( pAllocator );
|
SDK_NULL_ASSERT( pAllocator );
|
||||||
|
|
||||||
|
MI_CpuClear16( (void *)arenaLow, heapSize);
|
||||||
|
|
||||||
heapHandle = NNS_FndCreateExpHeap( heapMemory, heapSize );
|
heapHandle = NNS_FndCreateExpHeap( heapMemory, heapSize );
|
||||||
SDK_ASSERT( heapHandle != NNS_FND_HEAP_INVALID_HANDLE );
|
SDK_ASSERT( heapHandle != NNS_FND_HEAP_INVALID_HANDLE );
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user