Performance and size optimised.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7280 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -288,7 +288,7 @@ GraphicsConsoleControllerDriverStart (
|
|||||||
goto Error;
|
goto Error;
|
||||||
}
|
}
|
||||||
|
|
||||||
NarrowFontSize = ReturnNarrowFontSize ();
|
NarrowFontSize = mNarrowFontSize;
|
||||||
|
|
||||||
if (mFirstAccessFlag) {
|
if (mFirstAccessFlag) {
|
||||||
//
|
//
|
||||||
|
@ -41,7 +41,7 @@ extern EFI_COMPONENT_NAME2_PROTOCOL gGraphicsConsoleComponentName2;
|
|||||||
extern EFI_DRIVER_BINDING_PROTOCOL gGraphicsConsoleDriverBinding;
|
extern EFI_DRIVER_BINDING_PROTOCOL gGraphicsConsoleDriverBinding;
|
||||||
extern EFI_NARROW_GLYPH gUsStdNarrowGlyphData[];
|
extern EFI_NARROW_GLYPH gUsStdNarrowGlyphData[];
|
||||||
|
|
||||||
|
extern UINT32 mNarrowFontSize;
|
||||||
//
|
//
|
||||||
// User can define valid graphic resolution here
|
// User can define valid graphic resolution here
|
||||||
// e.g. 640x480, 800x600, 1024x768...
|
// e.g. 640x480, 800x600, 1024x768...
|
||||||
@ -216,19 +216,6 @@ GraphicsConsoleComponentNameGetControllerName (
|
|||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
Returns available Unicode glyphs narrow fonts(8*19 pixels) size.
|
|
||||||
|
|
||||||
@return Narrow font size.
|
|
||||||
|
|
||||||
**/
|
|
||||||
UINT32
|
|
||||||
ReturnNarrowFontSize (
|
|
||||||
VOID
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reset the text output device hardware and optionally run diagnostics.
|
Reset the text output device hardware and optionally run diagnostics.
|
||||||
|
|
||||||
|
@ -14,6 +14,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
|
|
||||||
#include "GraphicsConsole.h"
|
#include "GraphicsConsole.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
EFI_NARROW_GLYPH gUsStdNarrowGlyphData[] = {
|
EFI_NARROW_GLYPH gUsStdNarrowGlyphData[] = {
|
||||||
//
|
//
|
||||||
// Unicode glyphs from 0x20 to 0x7e are the same as ASCII characters 0x20 to 0x7e
|
// Unicode glyphs from 0x20 to 0x7e are the same as ASCII characters 0x20 to 0x7e
|
||||||
@ -270,19 +272,6 @@ EFI_NARROW_GLYPH gUsStdNarrowGlyphData[] = {
|
|||||||
{ 0x0000, 0x00, {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}} //EOL
|
{ 0x0000, 0x00, {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}} //EOL
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
// Get available Unicode glyphs narrow fonts(8*19 pixels) size.
|
||||||
Returns available Unicode glyphs narrow fonts(8*19 pixels) size.
|
UINT32 mNarrowFontSize = sizeof (gUsStdNarrowGlyphData);
|
||||||
|
|
||||||
@return Narrow font size.
|
|
||||||
|
|
||||||
**/
|
|
||||||
UINT32
|
|
||||||
ReturnNarrowFontSize (
|
|
||||||
VOID
|
|
||||||
)
|
|
||||||
{
|
|
||||||
//
|
|
||||||
// I need the size of this outside of this file, so here is a stub function to do that for me
|
|
||||||
//
|
|
||||||
return sizeof (gUsStdNarrowGlyphData);
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user