[feat] Desktop render color
This commit is contained in:
@@ -3,12 +3,13 @@
|
||||
// 这个文件存在的目的是让graphics的draw功能不用每次传 GOP hr vr base
|
||||
|
||||
#include <efi.h>
|
||||
#include <common.h>
|
||||
|
||||
struct gfx_context {
|
||||
EFI_GRAPHICS_OUTPUT_PROTOCOL *GOP;
|
||||
unsigned int hr;
|
||||
unsigned int vr;
|
||||
EFI_GRAPHICS_OUTPUT_BLT_PIXEL *base;
|
||||
COLOR_RGB *base;
|
||||
};
|
||||
|
||||
extern gfx_context g_gfx;
|
||||
|
||||
@@ -3,4 +3,6 @@
|
||||
#include <efi.h>
|
||||
#include <graphics/context.h>
|
||||
|
||||
void draw_pixel(unsigned int x, unsigned int y, EFI_GRAPHICS_OUTPUT_BLT_PIXEL color); // 画像素
|
||||
#define COLOR_RGB EFI_GRAPHICS_OUTPUT_BLT_PIXEL
|
||||
|
||||
void draw_pixel(unsigned int x, unsigned int y, COLOR_RGB color); // 画像素
|
||||
Reference in New Issue
Block a user