]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c
MdeModulePkg: Fix GraphicsConsole driver resolution out of sync issue
[mirror_edk2.git] / MdeModulePkg / Universal / Console / GraphicsConsoleDxe / GraphicsConsole.c
index 74218c8b4e454eacc016d6d0e46e412fe3bc2bf5..7b1c37b357955582866537eaec996a4b16683e34 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   This is the main routine for initializing the Graphics Console support routines.\r
 \r
 /** @file\r
   This is the main routine for initializing the Graphics Console support routines.\r
 \r
-Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2016, 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
 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
@@ -480,10 +480,12 @@ GraphicsConsoleControllerDriverStart (
         //\r
         // if not supporting current mode, try 800x600 which is required by UEFI/EFI spec\r
         //\r
         //\r
         // if not supporting current mode, try 800x600 which is required by UEFI/EFI spec\r
         //\r
+        HorizontalResolution = 800;\r
+        VerticalResolution   = 600;\r
         Status = CheckModeSupported (\r
                      Private->GraphicsOutput,\r
         Status = CheckModeSupported (\r
                      Private->GraphicsOutput,\r
-                     800,\r
-                     600,\r
+                     HorizontalResolution,\r
+                     VerticalResolution,\r
                      &ModeNumber\r
                      );\r
         Mode = Private->GraphicsOutput->Mode;\r
                      &ModeNumber\r
                      );\r
         Mode = Private->GraphicsOutput->Mode;\r