From 0eea74f5dc93204a13d4ef30ff41a6a4e5b9d5bf Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Mon, 7 Sep 2020 02:58:09 -0600 Subject: [PATCH] Convert GM9i logo to 8BPP --- arm9/source/main.cpp | 5 +++-- gfx/gm9i_logo.grit | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/arm9/source/main.cpp b/arm9/source/main.cpp index 91077aa..6380cbb 100644 --- a/arm9/source/main.cpp +++ b/arm9/source/main.cpp @@ -34,6 +34,7 @@ #include "driveOperations.h" #include "file_browse.h" #include "fileOperations.h" +#include "tonccpy.h" #include "gm9i_logo.h" @@ -147,9 +148,9 @@ int main(int argc, char **argv) { consoleInit(&bottomConsole, 0, BgType_Text4bpp, BgSize_T_256x256, 15, 0, false, true); // Display GM9i logo - bg3 = bgInit(3, BgType_Bmp16, BgSize_B16_256x256, 1, 0); - bgSetScroll(bg3, 0, 0); + bg3 = bgInit(3, BgType_Bmp8, BgSize_B8_256x256, 1, 0); decompress(gm9i_logoBitmap, bgGetGfxPtr(bg3), LZ77Vram); + tonccpy(BG_PALETTE, gm9i_logoPal, gm9i_logoPalLen); printf ("\x1b[1;1H"); printf(titleName); diff --git a/gfx/gm9i_logo.grit b/gfx/gm9i_logo.grit index 1f3eee3..cc7e21f 100644 --- a/gfx/gm9i_logo.grit +++ b/gfx/gm9i_logo.grit @@ -5,5 +5,5 @@ # use lz77 compression -gzl -# 16 bit bitmap --gB16 +# 8 bit bitmap +-gB8