Logo rework (#1232)
!Allows for new logo format that supports animation! Also moves logos out of repo into their own repo for ease of management. Changes: * Remove deprecated logos * Draft new Bootloader decoder * Use new logo handler * Simplify logo code further * Fix time bug on static images * Fix exit at end of animation * Docs * Interframe delay in 5ms increments * Quick pass handling empty updates * Exit at the end _after_ the frame delay * One final delay * Fix for overrun of logo data * Fixes https://github.com/Ralim/IronOS-Meta/issues/7
This commit is contained in:
17
source/Core/Drivers/BootLogo.h
Normal file
17
source/Core/Drivers/BootLogo.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef DRIVERS_BOOTLOGO_H_
|
||||
#define DRIVERS_BOOTLOGO_H_
|
||||
|
||||
// Wrapper for handling showing a bootlogo
|
||||
#include <stdint.h>
|
||||
#define OLD_LOGO_HEADER_VALUE 0xF00DAA55
|
||||
class BootLogo {
|
||||
public:
|
||||
static void handleShowingLogo(const uint8_t *ptrLogoArea);
|
||||
|
||||
private:
|
||||
static void showOldFormat(const uint8_t *ptrLogoArea);
|
||||
static void showNewFormat(const uint8_t *ptrLogoArea);
|
||||
static int showNewFrame(const uint8_t *ptrLogoArea);
|
||||
};
|
||||
|
||||
#endif // DRIVERS_BOOTLOGO_H_
|
||||
Reference in New Issue
Block a user