diff --git a/src/common/ascii.h b/src/common/ascii.h index 363098a..c3d76a2 100644 --- a/src/common/ascii.h +++ b/src/common/ascii.h @@ -168,8 +168,8 @@ static struct ascii_logo logo_exynos = { ASCII_EXYNOS, 22, 13, {COLOR_BLUE, static struct ascii_logo logo_kirin = { ASCII_KIRIN, 53, 12, {COLOR_RED}, {COLOR_WHITE, COLOR_RED} }; static struct ascii_logo logo_broadcom = { ASCII_BROADCOM, 44, 19, {COLOR_WHITE, COLOR_RED}, {COLOR_WHITE, COLOR_RED} }; static struct ascii_logo logo_arm = { ASCII_ARM, 42, 5, {COLOR_CYAN}, {COLOR_WHITE, COLOR_CYAN} }; -static struct ascii_logo logo_ibm = { ASCII_IBM, 57, 14, {COLOR_CYAN, COLOR_WHITE}, {COLOR_CYAN, COLOR_WHITE} }; -static struct ascii_logo logo_unknown = { NULL, 0, 0, { }, {"", ""} }; +static struct ascii_logo logo_ibm = { ASCII_IBM, 57, 13, {COLOR_CYAN, COLOR_WHITE}, {COLOR_CYAN, COLOR_WHITE} }; +static struct ascii_logo logo_unknown = { NULL, 0, 0, {"" }, {"", ""} }; static struct ascii_logo* ASCII_ARRAY [] = { &logo_amd, diff --git a/src/common/printer.c b/src/common/printer.c index 8f2248e..fa6dcee 100644 --- a/src/common/printer.c +++ b/src/common/printer.c @@ -330,7 +330,7 @@ void print_ascii_x86(struct ascii* art, uint32_t la) { printf("\n"); for(int32_t n=0; n < iters; n++) { // 1. Print logo - if(space_up > 0 || (space_up + n >= 0 && n + space_down < (int)logo->height)) { + if(space_up > 0 || (space_up + n >= 0 && space_up + n < (int)logo->height)) { for(uint32_t i=0; i < logo->width; i++) { if(logo->art[logo_pos] == '$' && logo->art[logo_pos+1] == 'C') { parse_print_color(logo, &logo_pos);