[v0.99] Fix two bugs in the logo printing

This commit is contained in:
Dr-Noob
2021-08-08 21:39:44 +02:00
parent a7e34a1490
commit 7ee36037c3
2 changed files with 3 additions and 3 deletions

View File

@@ -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,

View File

@@ -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);