From f3d37a17a19cde4d2f976c3e32804661c72bdfb3 Mon Sep 17 00:00:00 2001 From: riccardom Date: Sun, 13 Nov 2011 13:51:23 +0000 Subject: [PATCH] GPU: Fix compiler warnings (#3436995) gcc throws some compiler warnings in GPU.cpp because it's passing NULL for an u32 argument. NULL is only used for pointers, correct should be to pass the numeric value 0. From: hanno boeck --- desmume/src/GPU.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/desmume/src/GPU.cpp b/desmume/src/GPU.cpp index c16984f69..c0adb2eac 100644 --- a/desmume/src/GPU.cpp +++ b/desmume/src/GPU.cpp @@ -1184,16 +1184,16 @@ template FORCEINLINE void extRotBG2(GPU * gpu, s32 X, s32 Y, s16 PA case BGType_AffineExt_256x1: // 256 colors pal = MMU.ARM9_VMEM + gpu->core * 0x400; - apply_rot_fun >(gpu,X,Y,PA,PB,PC,PD,LG, gpu->BG_bmp_ram[num], NULL, pal); + apply_rot_fun >(gpu,X,Y,PA,PB,PC,PD,LG, gpu->BG_bmp_ram[num], 0, pal); return; case BGType_AffineExt_Direct: // direct colors / BMP - apply_rot_fun >(gpu,X,Y,PA,PB,PC,PD,LG, gpu->BG_bmp_ram[num], NULL, NULL); + apply_rot_fun >(gpu,X,Y,PA,PB,PC,PD,LG, gpu->BG_bmp_ram[num], 0, NULL); return; case BGType_Large8bpp: // large screen 256 colors pal = MMU.ARM9_VMEM + gpu->core * 0x400; - apply_rot_fun >(gpu,X,Y,PA,PB,PC,PD,LG, gpu->BG_bmp_large_ram[num], NULL, pal); + apply_rot_fun >(gpu,X,Y,PA,PB,PC,PD,LG, gpu->BG_bmp_large_ram[num], 0, pal); return; default: break; }