Skip to content

Commit

Permalink
fixed all the unchecked bugs from 1a4823b
Browse files Browse the repository at this point in the history
  • Loading branch information
adiee5 committed Jan 14, 2024
1 parent 1a4823b commit 7ed60b1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions neofetch.p8
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ main $4000 {

sub start(){

&ubyte[] shellcolors=get_text_colors()
uword shellcolors=shell.get_text_colors()

color(4)
shell.print("\r o o ")
Expand All @@ -24,9 +24,9 @@ main $4000 {
if ver == -1
shell.print("unstable")
else{
shell.chrout("R")
shell.chrout('R')
if ver < 0 ver *= -1
shell.print_ub(ver)
shell.print_ub(ver as ubyte)
}

color(4)
Expand Down Expand Up @@ -66,7 +66,7 @@ main $4000 {
}}
shell.print(": ")
shell.print_uw((resx as uword)*8)
shell.chrout("x")
shell.chrout('x')
shell.print_uw((resy as uword)*8)

color(3)
Expand All @@ -91,11 +91,11 @@ main $4000 {
ubyte tmp_ctrl = cx16.VERA_CTRL
cx16.VERA_CTRL = $7e
if cx16.VERA_DC_VER0 == $56 {
shell.chrout("v")
shell.chrout('v')
shell.print_ub(cx16.VERA_DC_VER1)
shell.chrout(".")
shell.chrout('.')
shell.print_ub(cx16.VERA_DC_VER2)
shell.chrout(".")
shell.chrout('.')
shell.print_ub(cx16.VERA_DC_VER3)
}
cx16.VERA_CTRL = tmp_ctrl
Expand Down Expand Up @@ -138,7 +138,7 @@ main $4000 {
color(2)
shell.print("\r M@/ \\@M ")

shell.chrout("\r")
shell.chrout('\r')
sys.exit(0)
}

Expand Down

0 comments on commit 7ed60b1

Please sign in to comment.