[feat] Desktop render color
This commit is contained in:
@@ -12,7 +12,7 @@ void pf_reset_position(void) {
|
||||
pf_y = 1;
|
||||
}
|
||||
|
||||
void pf_print_char(char c, unsigned int basex, unsigned int basey, EFI_GRAPHICS_OUTPUT_BLT_PIXEL color) {
|
||||
void pf_print_char(char c, unsigned int basex, unsigned int basey, COLOR_RGB color) {
|
||||
for (unsigned int y = 0; y < 16; y++) {
|
||||
unsigned char data = hankaku_pixels[c][y];
|
||||
for (int x = 7; x >= 0; x--) {
|
||||
@@ -31,7 +31,7 @@ void pf_print_char(char c, unsigned int basex, unsigned int basey, EFI_GRAPHICS_
|
||||
}
|
||||
}
|
||||
|
||||
void pf_print(const char* text, EFI_GRAPHICS_OUTPUT_BLT_PIXEL color) {
|
||||
void pf_print(const char* text, COLOR_RGB color) {
|
||||
for (unsigned int i = 0; i < strlen(text); i++) {
|
||||
char c = text[i];
|
||||
if (c == '\n') {
|
||||
|
||||
Reference in New Issue
Block a user