mirror of
https://github.com/CTCaer/hekate
synced 2024-11-16 08:59:26 +00:00
Allow disabling inclusion of default splash
Saves ~7k
This commit is contained in:
parent
5fd9daa364
commit
7b827aa925
3 changed files with 6 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -52,7 +52,7 @@ OBJS += $(addprefix $(BUILD)/$(TARGET)/, \
|
||||||
)
|
)
|
||||||
|
|
||||||
ARCH := -march=armv4t -mtune=arm7tdmi -mthumb -mthumb-interwork
|
ARCH := -march=armv4t -mtune=arm7tdmi -mthumb -mthumb-interwork
|
||||||
CUSTOMDEFINES := -DMENU_LOGO_ENABLE #-DDEBUG
|
CUSTOMDEFINES := #-DSPLASH_ENABLE #-DMENU_LOGO_ENABLE #-DDEBUG
|
||||||
CFLAGS = $(ARCH) -O2 -nostdlib -flto -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-inline -std=gnu11 -Wall $(CUSTOMDEFINES)
|
CFLAGS = $(ARCH) -O2 -nostdlib -flto -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-inline -std=gnu11 -Wall $(CUSTOMDEFINES)
|
||||||
LDFLAGS = $(ARCH) -nostartfiles -lgcc -Wl,--nmagic,--gc-sections
|
LDFLAGS = $(ARCH) -nostartfiles -lgcc -Wl,--nmagic,--gc-sections
|
||||||
|
|
||||||
|
|
|
@ -501,6 +501,8 @@ static unsigned char Kc_MENU_LOGO_blz[SZ_MENU_LOGO_BLZ] = {
|
||||||
|
|
||||||
#endif //MENU_LOGO_ENABLE
|
#endif //MENU_LOGO_ENABLE
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef SPLASH_ENABLE
|
||||||
// 68 x 192 @8bpp Grayscale RAW.
|
// 68 x 192 @8bpp Grayscale RAW.
|
||||||
#define X_BOOTLOGO 68
|
#define X_BOOTLOGO 68
|
||||||
#define Y_BOOTLOGO 192
|
#define Y_BOOTLOGO 192
|
||||||
|
@ -927,5 +929,6 @@ static u8 BOOTLOGO_BLZ[SZ_BOOTLOGO_BLZ] = {
|
||||||
0x1C, 0x1C, 0x1C, 0x1D, 0x0E, 0x1C, 0x0A, 0xA0, 0x1B, 0x03, 0x30, 0x00, 0x00, 0x1B, 0x1B, 0x1B,
|
0x1C, 0x1C, 0x1C, 0x1D, 0x0E, 0x1C, 0x0A, 0xA0, 0x1B, 0x03, 0x30, 0x00, 0x00, 0x1B, 0x1B, 0x1B,
|
||||||
0x1A, 0xFF, 0xFF, 0xFF, 0x30, 0x1A, 0x00, 0x00, 0x0F, 0x00, 0x00, 0x00, 0xD0, 0x18, 0x00, 0x00
|
0x1A, 0xFF, 0xFF, 0xFF, 0x30, 0x1A, 0x00, 0x00, 0x0F, 0x00, 0x00, 0x00, 0xD0, 0x18, 0x00, 0x00
|
||||||
};
|
};
|
||||||
|
#endif //SPLASH_ENABLE
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -2063,6 +2063,7 @@ void auto_launch_firmware()
|
||||||
gfx_render_bmp_argb(&gfx_ctxt, (u32 *)BOOTLOGO, bmpData.size_x, bmpData.size_y,
|
gfx_render_bmp_argb(&gfx_ctxt, (u32 *)BOOTLOGO, bmpData.size_x, bmpData.size_y,
|
||||||
bmpData.pos_x, bmpData.pos_y);
|
bmpData.pos_x, bmpData.pos_y);
|
||||||
}
|
}
|
||||||
|
#ifdef SPLASH_ENABLE
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
BOOTLOGO = (void *)malloc(0x4000);
|
BOOTLOGO = (void *)malloc(0x4000);
|
||||||
|
@ -2070,6 +2071,7 @@ void auto_launch_firmware()
|
||||||
gfx_set_rect_grey(&gfx_ctxt, BOOTLOGO, X_BOOTLOGO, Y_BOOTLOGO, 326, 544);
|
gfx_set_rect_grey(&gfx_ctxt, BOOTLOGO, X_BOOTLOGO, Y_BOOTLOGO, 326, 544);
|
||||||
free(BOOTLOGO);
|
free(BOOTLOGO);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
free(BOOTLOGO);
|
free(BOOTLOGO);
|
||||||
|
|
||||||
display_backlight(true);
|
display_backlight(true);
|
||||||
|
|
Loading…
Reference in a new issue