mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-04 02:23:10 +00:00
Changed libc structure, shouldn't've added anything new
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#include <stdint.h>
|
||||
#include <sys/gfx.h>
|
||||
|
||||
uint32_t codeToColor(uint8_t code) {
|
||||
switch (code) {
|
||||
case 0: return BLACK;
|
||||
case 1: return RED;
|
||||
case 2: return GREEN;
|
||||
case 3: return YELLOW;
|
||||
case 4: return BLUE;
|
||||
case 5: return MAGENTA;
|
||||
case 6: return CYAN;
|
||||
case 7: return WHITE;
|
||||
default: return BLACK;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user