Skip to content
Snippets Groups Projects

feat(main): Show git info as overlay

Merged schneider requested to merge schneider/splash into master
1 file
+ 14
14
Compare changes
  • Side-by-side
  • Inline
+ 14
14
@@ -47,22 +47,22 @@ int main(void)
epic_disp_clear(0x0000);
if (strcmp(CARD10_VERSION, "v1.16") == 0) {
gfx_copy_region(
&display_screen,
0,
0,
160,
80,
GFX_RAW,
sizeof(version_splash),
version_splash
);
} else {
gfx_copy_region(
&display_screen,
0,
0,
160,
80,
GFX_RAW,
sizeof(version_splash),
version_splash
);
if (strcmp(CARD10_VERSION, "v1.16") != 0) {
const int off = (160 - (int)strlen(version_buf) * 14) / 2;
epic_disp_print(10, 20, "Epicardium", 0xfe20, 0x0000);
epic_disp_print(10, 20, "Epicardium", 0xfe20, 0xfe20);
epic_disp_print(
off > 0 ? off : 0, 40, version_buf, 0xfe20, 0x0000
off > 0 ? off : 0, 40, version_buf, 0xfe20, 0xfe20
);
}
epic_disp_update();
Loading