EmulatorPkg: Fix enum type mismatch warning treated as error
Issue: While building edk2, the compiler threw a warning
that was treated as an eror which halted the build
process.
Root Cause: The error was due to a comparison between two
different enum types.
Code Fix: WinGopScreen.c: In function WinNtWndBlt, changed
the comparison between an enum type
"EFI_UGA_BLT_OPERATION" and "EFI_GRAPHICS_OUTPUT_BLT_OPERATION"
to "EFI_UGA_BLT_OPERATION".
Test: The compiled image runs successfully on QEMU.
Signed-off-by: Rithvik Rama <rithrama@amd.com>
This commit is contained in:
committed by
mergify[bot]
parent
a808062890
commit
3fe67222b9
@@ -423,7 +423,7 @@ WinNtWndBlt (
|
||||
return (EFI_STATUS)RStatus;
|
||||
}
|
||||
|
||||
if (BltOperation != EfiBltVideoToBltBuffer) {
|
||||
if (BltOperation != EfiUgaVideoToBltBuffer) {
|
||||
//
|
||||
// Mark the area we just blted as Invalid so WM_PAINT will update.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user