[v0.99] Center automatically logo and text, when logo is longer than text and viceversa (before this commit only the first case was supported)

This commit is contained in:
Dr-Noob
2021-08-08 12:53:16 +02:00
parent 1326314103
commit b7c32fcd4a
2 changed files with 22 additions and 32 deletions

View File

@@ -19,25 +19,12 @@ struct ascii_logo {
};
#define ASCII_AMD \
" \
\
\
\
\
\
$C1 @@@@ @@@ @@@ @@@@@@@@ $C2############ \
"$C1 @@@@ @@@ @@@ @@@@@@@@ $C2############ \
$C1 @@@@@@ @@@@@ @@@@@ @@@ @@@ $C2########## \
$C1 @@@ @@@ @@@@@@@@@@@@@ @@@ @@ $C2# ##### \
$C1 @@@ @@@ @@@ @@@ @@@ @@@ @@ $C2### ##### \
$C1 @@@@@@@@@@@@ @@@ @@@ @@@ @@@ $C2######### ### \
$C1 @@@ @@@ @@@ @@@ @@@@@@@@@ $C2######## ## \
\
\
\
\
\
\
"
$C1 @@@ @@@ @@@ @@@ @@@@@@@@@ $C2######## ## "
// 1 2 3 4 5 6
// 123456789012345678901234567890123456789012345678901234567890
@@ -234,7 +221,7 @@ $C1 ######################### \
// LOGO W H COLORS LOGO (>0 && <10) COLORS TEXT (=2)
// --------------------------------------------------------------------------------
static struct ascii_logo logo_amd = { ASCII_AMD, 62, 19, {COLOR_WHITE, COLOR_GREEN}, {COLOR_WHITE, COLOR_GREEN} };
static struct ascii_logo logo_amd = { ASCII_AMD, 62, 6, {COLOR_WHITE, COLOR_GREEN}, {COLOR_WHITE, COLOR_GREEN} };
static struct ascii_logo logo_intel = { ASCII_INTEL, 62, 19, {COLOR_CYAN}, {COLOR_CYAN, COLOR_WHITE} };
static struct ascii_logo logo_snapd = { ASCII_SNAPD, 62, 19, {COLOR_RED, COLOR_WHITE}, {COLOR_RED, COLOR_WHITE} };
static struct ascii_logo logo_mtk = { ASCII_MTK, 62, 19, {COLOR_BLUE, COLOR_YELLOW}, {COLOR_BLUE, COLOR_YELLOW} };