mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 16:00:39 +01:00
[v0.99] Fix two bugs in the logo printing
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user