summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-emulation/desmume/files/desmume-fix-gcc-warning.diff')
-rw-r--r--games-emulation/desmume/files/desmume-fix-gcc-warning.diff22
1 files changed, 22 insertions, 0 deletions
diff --git a/games-emulation/desmume/files/desmume-fix-gcc-warning.diff b/games-emulation/desmume/files/desmume-fix-gcc-warning.diff
new file mode 100644
index 0000000..4096402
--- /dev/null
+++ b/games-emulation/desmume/files/desmume-fix-gcc-warning.diff
@@ -0,0 +1,22 @@
+--- desmume-0.9.7/src/GPU.cpp 2011-01-27 11:27:00.000000000 +0100
++++ desmume-0.9.7-fix-warning/src/GPU.cpp 2011-11-11 21:17:10.826721602 +0100
+@@ -1184,16 +1184,16 @@
+ case BGType_AffineExt_256x1:
+ // 256 colors
+ pal = MMU.ARM9_VMEM + gpu->core * 0x400;
+- apply_rot_fun<rot_256_map<MOSAIC> >(gpu,X,Y,PA,PB,PC,PD,LG, gpu->BG_bmp_ram[num], NULL, pal);
++ apply_rot_fun<rot_256_map<MOSAIC> >(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<rot_BMP_map<MOSAIC> >(gpu,X,Y,PA,PB,PC,PD,LG, gpu->BG_bmp_ram[num], NULL, NULL);
++ apply_rot_fun<rot_BMP_map<MOSAIC> >(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<rot_256_map<MOSAIC> >(gpu,X,Y,PA,PB,PC,PD,LG, gpu->BG_bmp_large_ram[num], NULL, pal);
++ apply_rot_fun<rot_256_map<MOSAIC> >(gpu,X,Y,PA,PB,PC,PD,LG, gpu->BG_bmp_large_ram[num], 0, pal);
+ return;
+ default: break;
+ }