[feat] Desktop render color
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
#include <graphics/draw.h>
|
||||
|
||||
void draw_pixel(unsigned int x, unsigned int y, EFI_GRAPHICS_OUTPUT_BLT_PIXEL color) {
|
||||
EFI_GRAPHICS_OUTPUT_BLT_PIXEL *p = g_gfx.base + (g_gfx.hr * y) + x;
|
||||
void draw_pixel(unsigned int x, unsigned int y, COLOR_RGB color) {
|
||||
COLOR_RGB *p = g_gfx.base + (g_gfx.hr * y) + x;
|
||||
|
||||
p->Blue = color.Blue;
|
||||
p->Green = color.Green;
|
||||
|
||||
Reference in New Issue
Block a user