Fixes for SGDK 1.8
#include "gfx.h"
#include "dma.h"
-int main(u16 hard)
+int main(bool hard)
{
u16 ind;
@@ -13,7 +13,7 @@ int main(u16 hard)
VDP_setScreenWidth320();
// set all palette to black
- VDP_setPaletteColors(0, (u16*) palette_black, 64);
+ PAL_setColors(0, (u16*) palette_black, 64, DMA);
// load background tilesets in VRAM
ind = TILE_USER_INDEX;
@@ -33,8 +33,8 @@ int main(u16 hard)
VDP_setTileMapEx(BG_A, ctmap, TILE_ATTR_FULL(PAL0, FALSE, FALSE, FALSE, idx1), 0, 0, 0, 0, 30, 12, CPU);
VDP_setTileMapEx(BG_A, utmap, TILE_ATTR_FULL(PAL1, FALSE, FALSE, FALSE, idx2), 0, 12, 0, 0, 30, 12, CPU);
- VDP_setPaletteColors(0, (u16*)logo_aplib.palette->data, 16);
- VDP_setPaletteColors(16, (u16*)logo_ucomp.palette->data, 32);
+ PAL_setColors(0, (u16*)logo_aplib.palette->data, 16, CPU);
+ PAL_setColors(16, (u16*)logo_ucomp.palette->data, 32, CPU);
// VDP process done, we can re enable interrupts
SYS_enableInts();
