diff mbox

[edk2,1/6] MdeModulePkg/BootLogoLib: pull GraphicsOutput protocol into class header

Message ID 1464179806-24099-2-git-send-email-lersek@redhat.com
State Accepted
Commit 10fa5abf16ca091ed18d6c38fe3758284fb9b0b1
Headers show

Commit Message

Laszlo Ersek May 25, 2016, 12:36 p.m. UTC
The BootLogoUpdateProgress() function uses the
EFI_GRAPHICS_OUTPUT_BLT_PIXEL type in its parameter list, but the protocol
header that defines this type is not included. This breaks dependent C
source files that don't otherwise include the GraphicsOutput protocol
header. Supply the necessary include directive.

(Similarly, BootLogoEnableLogo() uses
EDKII_PLATFORM_LOGO_DISPLAY_ATTRIBUTE in its parameter list. For that
however, the PlatformLogo protocol header is included already.)

Cc: Feng Tian <feng.tian@intel.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>

---
 MdeModulePkg/Include/Library/BootLogoLib.h | 1 +
 1 file changed, 1 insertion(+)

-- 
1.8.3.1


_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
diff mbox

Patch

diff --git a/MdeModulePkg/Include/Library/BootLogoLib.h b/MdeModulePkg/Include/Library/BootLogoLib.h
index b39d61b7c3e5..55fe4b11cc4e 100644
--- a/MdeModulePkg/Include/Library/BootLogoLib.h
+++ b/MdeModulePkg/Include/Library/BootLogoLib.h
@@ -17,6 +17,7 @@  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define _BOOT_LOGO_LIB_H_
 
 #include <Protocol/PlatformLogo.h>
+#include <Protocol/GraphicsOutput.h>
 
 /**
   Show LOGO on all consoles.