From 4bc8a9f09063d82d8aea2c2a1c3629d108a5bc1c Mon Sep 17 00:00:00 2001 From: Rahix <rahix@rahix.de> Date: Tue, 27 Aug 2019 12:18:26 +0200 Subject: [PATCH] feat(epicardium): Update version-splash color Signed-off-by: Rahix <rahix@rahix.de> --- epicardium/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/epicardium/main.c b/epicardium/main.c index dadad9bf4..56639ea56 100644 --- a/epicardium/main.c +++ b/epicardium/main.c @@ -24,10 +24,10 @@ int main(void) * Version Splash */ const char *version_buf = CARD10_VERSION; - const int offset = (160 - (int)strlen(version_buf) * 14) / 2; - epic_disp_clear(0x3b7); - epic_disp_print(10, 20, "Epicardium", 0x290, 0x3b7); - epic_disp_print(offset > 0 ? offset : 0, 40, version_buf, 0x290, 0x3b7); + const int off = (160 - (int)strlen(version_buf) * 14) / 2; + epic_disp_clear(0x9dc0); + epic_disp_print(10, 20, "Epicardium", 0x6c20, 0x9dc0); + epic_disp_print(off > 0 ? off : 0, 40, version_buf, 0x6c20, 0x9dc0); epic_disp_update(); mxc_delay(2000000); -- GitLab