[refactor] Organize INT
This commit is contained in:
@@ -3,11 +3,12 @@
|
||||
// 这个文件存在的目的是让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;
|
||||
SUINT32 hr;
|
||||
SUINT32 vr;
|
||||
EFI_GRAPHICS_OUTPUT_BLT_PIXEL *base;
|
||||
};
|
||||
|
||||
@@ -15,13 +16,13 @@ extern gfx_context g_gfx;
|
||||
|
||||
struct draw_target {
|
||||
EFI_GRAPHICS_OUTPUT_BLT_PIXEL *buf;
|
||||
unsigned int w;
|
||||
unsigned int h;
|
||||
SUINT32 w;
|
||||
SUINT32 h;
|
||||
};
|
||||
|
||||
extern draw_target g_draw_target;
|
||||
|
||||
void gfx_init(EFI_GRAPHICS_OUTPUT_PROTOCOL *GOP);
|
||||
void gfx_clear(void);
|
||||
void draw_set_target(EFI_GRAPHICS_OUTPUT_BLT_PIXEL *buf, unsigned int w, unsigned int h);
|
||||
void draw_set_target(EFI_GRAPHICS_OUTPUT_BLT_PIXEL *buf, SUINT32 w, SUINT32 h);
|
||||
void draw_set_default_target(void);
|
||||
Reference in New Issue
Block a user