libeg/screen.c
BOOLEAN egGetResFromMode(UINTN *ModeWidth, UINTN *Height) {
    UINTN Size;
    EFI_STATUS Status;
    EFI_GRAPHICS_OUTPUT_MODE_INFORMATION *Info = NULL;

    if ((ModeWidth != NULL) && (Height != NULL)) {
        Status = refit_call4_wrapper(GraphicsOutput->QueryMode, GraphicsOutput, *ModeWidth, &Size, &Info);
        if ((Status == EFI_SUCCESS) && (Info != NULL)) {
            *ModeWidth = Info->HorizontalResolution;
            *Height = Info->VerticalResolution;
            return TRUE;
        }
    }
    return FALSE;
}
// Convert a graphics mode (in *ModeWidth) to a width and height (returned in
// *ModeWidth and *Height, respectively).
// Returns TRUE if successful, FALSE if not (invalid mode, typically)
Convert a graphics mode (in *ModeWidth) to a width and height (returned in
ModeWidth and *Height, respectively).
Returns TRUE if successful, FALSE if not (invalid mode, typically)
Convert a graphics mode ( in * ModeWidth ) to a width and height ( returned in ModeWidth and * Height respectively ) . Returns TRUE if successful FALSE if not ( invalid mode typically )
BOOLEAN egGetResFromMode(UINTN *ModeWidth, UINTN *Height) {
    UINTN Size;
    EFI_STATUS Status;
    EFI_GRAPHICS_OUTPUT_MODE_INFORMATION *Info = NULL;
    if ((ModeWidth != NULL) && (Height != NULL)) {
        Status = refit_call4_wrapper(GraphicsOutput->QueryMode, GraphicsOutput, *ModeWidth, &Size, &Info);
        if ((Status == EFI_SUCCESS) && (Info != NULL)) {
            *ModeWidth = Info->HorizontalResolution;
            *Height = Info->VerticalResolution;
            return TRUE;
        }
    }
    return FALSE;
}
BOOLEAN egGetResFromMode ( UINTN * ModeWidth , UINTN * Height ) { UINTN Size ; EFI_STATUS Status ; EFI_GRAPHICS_OUTPUT_MODE_INFORMATION * Info = NULL ; if ( ( ModeWidth != NULL ) && ( Height != NULL ) ) { Status = refit_call4_wrapper ( GraphicsOutput -> QueryMode , GraphicsOutput , * ModeWidth , & Size , & Info ) ; if ( ( Status == EFI_SUCCESS ) && ( Info != NULL ) ) { * ModeWidth = Info -> HorizontalResolution ; * Height = Info -> VerticalResolution ; return TRUE ; } } return FALSE ; }
Convert a graphics mode (in *ModeWidth) to a width and height (returned in
ModeWidth and *Height, respectively).
Convert a graphics mode ( in * ModeWidth ) to a width and height ( returned in ModeWidth and * Height respectively ) .