Skip to content
Snippets Groups Projects
Commit 27483cb6 authored by schneider's avatar schneider
Browse files

feat(main): Show git info as overlay

parent acf4aa2e
No related branches found
No related tags found
1 merge request!441feat(main): Show git info as overlay
Pipeline #5068 passed
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment