]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Console/GraphicsConsoleDxe/LaffStd.c
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Universal / Console / GraphicsConsoleDxe / LaffStd.c
index d91f91fd89034a0ead94b72b9267300c5cf05119..70715527adde260810ff2d2ea17bf5fc3816d8f6 100644 (file)
@@ -1,33 +1,16 @@
-/*++\r
+/** @file\r
+  Narrow font Data definition for GraphicsConsole driver.\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
-are licensed and made available under the terms and conditions of the BSD License         \r
-which accompanies this distribution.  The full text of the license may be found at        \r
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
-Module Name:\r
+**/\r
 \r
-  LaffStd.c\r
-\r
-Abstract:\r
-\r
-  \r
-Revision History\r
-\r
---*/\r
+#include "GraphicsConsole.h"\r
 \r
-//\r
-// Include common header file for this module.\r
-//\r
-#include "CommonHeader.h"\r
 \r
-#include "GraphicsConsole.h"\r
 \r
-EFI_NARROW_GLYPH  UsStdNarrowGlyphData[] = {\r
+EFI_NARROW_GLYPH  gUsStdNarrowGlyphData[] = {\r
   //\r
   // Unicode glyphs from 0x20 to 0x7e are the same as ASCII characters 0x20 to 0x7e\r
   //\r
@@ -283,13 +266,6 @@ EFI_NARROW_GLYPH  UsStdNarrowGlyphData[] = {
   { 0x0000, 0x00, {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}} //EOL\r
 };\r
 \r
-UINTN\r
-ReturnNarrowFontSize (\r
-  VOID\r
-  )\r
-{\r
-  //\r
-  // I need the size of this outside of this file, so here is a stub function to do that for me\r
-  //\r
-  return sizeof (UsStdNarrowGlyphData);\r
-}\r
+// Get available Unicode glyphs narrow fonts(8*19 pixels) size.\r
+UINT32 mNarrowFontSize =  sizeof (gUsStdNarrowGlyphData);\r
+\r