]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/SetupBrowserDxe/Colors.h
Add code check to avoid access violation.
[mirror_edk2.git] / MdeModulePkg / Universal / SetupBrowserDxe / Colors.h
index 94c3368c3ae427161722e893b33eb30ab0f00b93..2db8b99614fc53c7292813d1ee5c630cf6e127e4 100644 (file)
@@ -1,48 +1,44 @@
-/** @file
-MACRO definitions for color used in Setup Browser.
-
-Copyright (c) 2004, Intel Corporation
-All rights reserved. This program and the accompanying materials
-are licensed and made available under the terms and conditions of the BSD License
-which accompanies this distribution.  The full text of the license may be found at
-http://opensource.org/licenses/bsd-license.php
-
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-
-**/
-//
-// Unicode collation protocol in
-
-#ifndef _COLORS_H_
-#define _COLORS_H_
-
-//
-// Screen Color Settings
-//
-#define PICKLIST_HIGHLIGHT_TEXT       EFI_WHITE
-#define PICKLIST_HIGHLIGHT_BACKGROUND EFI_BACKGROUND_CYAN
-#define TITLE_TEXT                    EFI_WHITE
-#define TITLE_BACKGROUND              EFI_BACKGROUND_BLUE
-#define KEYHELP_TEXT                  EFI_LIGHTGRAY
-#define KEYHELP_BACKGROUND            EFI_BACKGROUND_BLACK
-#define SUBTITLE_TEXT                 EFI_BLUE
-#define SUBTITLE_BACKGROUND           EFI_BACKGROUND_LIGHTGRAY
-#define BANNER_TEXT                   EFI_BLUE
-#define BANNER_BACKGROUND             EFI_BACKGROUND_LIGHTGRAY
-#define FIELD_TEXT                    EFI_BLACK
-#define FIELD_TEXT_GRAYED             EFI_DARKGRAY
-#define FIELD_BACKGROUND              EFI_BACKGROUND_LIGHTGRAY
-#define FIELD_TEXT_HIGHLIGHT          EFI_LIGHTGRAY
-#define FIELD_BACKGROUND_HIGHLIGHT    EFI_BACKGROUND_BLACK
-#define POPUP_TEXT                    EFI_LIGHTGRAY
-#define POPUP_BACKGROUND              EFI_BACKGROUND_BLUE
-#define POPUP_INVERSE_TEXT            EFI_LIGHTGRAY
-#define POPUP_INVERSE_BACKGROUND      EFI_BACKGROUND_BLACK
-#define HELP_TEXT                     EFI_BLUE
-#define ERROR_TEXT                    EFI_RED | EFI_BRIGHT
-#define INFO_TEXT                     EFI_YELLOW | EFI_BRIGHT
-#define ARROW_TEXT                    EFI_RED | EFI_BRIGHT
-#define ARROW_BACKGROUND              EFI_BACKGROUND_LIGHTGRAY
-
-#endif
+/** @file\r
+MACRO definitions for color used in Setup Browser.\r
+\r
+Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>\r
+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
+\r
+**/\r
+//\r
+// Unicode collation protocol in\r
+\r
+#ifndef _COLORS_H_\r
+#define _COLORS_H_\r
+\r
+//\r
+// Screen Color Settings\r
+//\r
+#define PICKLIST_HIGHLIGHT_TEXT       EFI_WHITE\r
+#define PICKLIST_HIGHLIGHT_BACKGROUND EFI_BACKGROUND_CYAN\r
+#define TITLE_TEXT                    EFI_WHITE\r
+#define TITLE_BACKGROUND              EFI_BACKGROUND_BLUE\r
+#define KEYHELP_TEXT                  EFI_LIGHTGRAY\r
+#define KEYHELP_BACKGROUND            EFI_BACKGROUND_BLACK\r
+#define SUBTITLE_BACKGROUND           EFI_BACKGROUND_LIGHTGRAY\r
+#define BANNER_TEXT                   EFI_BLUE\r
+#define BANNER_BACKGROUND             EFI_BACKGROUND_LIGHTGRAY\r
+#define FIELD_TEXT_GRAYED             EFI_DARKGRAY\r
+#define FIELD_BACKGROUND              EFI_BACKGROUND_LIGHTGRAY\r
+#define POPUP_TEXT                    EFI_LIGHTGRAY\r
+#define POPUP_BACKGROUND              EFI_BACKGROUND_BLUE\r
+#define POPUP_INVERSE_TEXT            EFI_LIGHTGRAY\r
+#define POPUP_INVERSE_BACKGROUND      EFI_BACKGROUND_BLACK\r
+#define HELP_TEXT                     EFI_BLUE\r
+#define ERROR_TEXT                    EFI_RED | EFI_BRIGHT\r
+#define INFO_TEXT                     EFI_YELLOW | EFI_BRIGHT\r
+#define ARROW_TEXT                    EFI_RED | EFI_BRIGHT\r
+#define ARROW_BACKGROUND              EFI_BACKGROUND_LIGHTGRAY\r
+\r
+#endif\r