[feat] Desktop render color

This commit is contained in:
2026-05-31 19:58:14 +08:00
Unverified
parent 746786a059
commit 175eba1889
27 changed files with 66 additions and 39 deletions
+2 -2
View File
@@ -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') {