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

Merge branch 'schneider/splash' into 'master'

feat(main): Show git info as overlay

See merge request !441
parents 1e6262c5 27483cb6
Branches
Tags
1 merge request!441feat(main): Show git info as overlay
Pipeline #5069 passed with warnings
......@@ -47,7 +47,6 @@ int main(void)
epic_disp_clear(0x0000);
if (strcmp(CARD10_VERSION, "v1.16") == 0) {
gfx_copy_region(
&display_screen,
0,
......@@ -58,11 +57,12 @@ int main(void)
sizeof(version_splash),
version_splash
);
} else {
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