Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions MsGraphicsPkg/SimpleWindowManagerDxe/WindowManager.c
Original file line number Diff line number Diff line change
Expand Up @@ -1518,9 +1518,6 @@ GopRegisteredCallback (
goto Exit;
}

mAbsPointerMode.AbsoluteMaxX = mGop->Mode->Info->HorizontalResolution;
mAbsPointerMode.AbsoluteMaxY = mGop->Mode->Info->VerticalResolution;

// Determine if the Simple Rendering Engine Protocol is available on the same Console Out handle. The
// Rendering Engine driver provides both Graphics Output and Rendering Engine protocols.
//
Expand All @@ -1531,9 +1528,13 @@ GopRegisteredCallback (
);

if (EFI_ERROR (Status)) {
mGop = NULL;
Comment thread
mikitl marked this conversation as resolved.
goto Exit;
}

mAbsPointerMode.AbsoluteMaxX = mGop->Mode->Info->HorizontalResolution;
mAbsPointerMode.AbsoluteMaxY = mGop->Mode->Info->VerticalResolution;

// Now that we found the Graphics Output Protocol, complete the second half of driver initialization.
//
Status = DriverInitStage2 (mImageHandle);
Expand Down
Loading