Remove hard code video resolution in C code and use PCD PcdVideoHorizontalResolution/PcdVideoVerticalResolution for customization. And when PcdConOutRow/PcdConOutColumn and PcdVideoHorizontalResolution/PcdVideoVerticalResolution are all set to 0, the console will be max video resolution and max text mode.
Signed-off-by: li-elvin Reviewed-by: niruiyu, hhtian git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12595 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -42,12 +42,6 @@ extern EFI_DRIVER_BINDING_PROTOCOL gGraphicsConsoleDriverBinding;
|
||||
extern EFI_NARROW_GLYPH gUsStdNarrowGlyphData[];
|
||||
|
||||
extern UINT32 mNarrowFontSize;
|
||||
//
|
||||
// User can define valid graphic resolution here
|
||||
// e.g. 640x480, 800x600, 1024x768...
|
||||
//
|
||||
#define CURRENT_HORIZONTAL_RESOLUTION 800
|
||||
#define CURRENT_VERTICAL_RESOLUTION 600
|
||||
|
||||
typedef union {
|
||||
EFI_NARROW_GLYPH NarrowGlyph;
|
||||
|
Reference in New Issue
Block a user