Shut up a few gcc warnings in GPU.cpp.

This commit is contained in:
riccardom 2009-05-18 19:18:52 +00:00
parent 47b2f84711
commit 3ccc9ae7dd
1 changed files with 5 additions and 4 deletions

View File

@ -1744,7 +1744,6 @@ template<bool MOSAIC> FORCEINLINE void rotBG2(GPU * gpu, s32 X, s32 Y, s16 PA, s
template<bool MOSAIC> FORCEINLINE void extRotBG2(GPU * gpu, s32 X, s32 Y, s16 PA, s16 PB, s16 PC, s16 PD, s16 LG)
{
u8 num = gpu->currBgNum;
struct _BGxCNT * bgCnt = &(gpu->dispx_st)->dispx_BGxCNT[num].bits;
struct _DISPCNT * dispCnt = &(gpu->dispx_st)->dispx_DISPCNT.bits;
u8 *map, *tile, *pal;
@ -1792,9 +1791,11 @@ template<bool MOSAIC> FORCEINLINE void extRotBG2(GPU * gpu, s32 X, s32 Y, s16 PA
// BACKGROUND RENDERING -HELPER FUNCTIONS-
/*****************************************************************************/
void lineNull(GPU * gpu)
#if 0
static void lineNull(GPU * gpu)
{
}
#endif
template<bool MOSAIC> void lineText(GPU * gpu)
{
@ -2671,8 +2672,8 @@ static void GPU_ligne_layer(NDS_Screen * screen, u16 l)
{
gpu->currBgNum = i16;
gpu->blend1 = gpu->BLDCNT & (1 << gpu->currBgNum);
for(int i=0;i<8;i++)
gpu->blend2[i] = (gpu->BLDCNT & (0x100 << i));
for(int j=0;j<8;j++)
gpu->blend2[j] = (gpu->BLDCNT & (0x100 << j));
gpu->currentFadeInColors = &fadeInColors[gpu->BLDY_EVY][0];
gpu->currentFadeOutColors = &fadeOutColors[gpu->BLDY_EVY][0];
//gpu->bgFunc = gpu->setFinalColorBck_funcNum;