VirtualBox

Ignore:
Timestamp:
Nov 7, 2014 2:03:22 PM (10 years ago)
Author:
vboxsync
Message:

UEFI: Calculate more sane GOP framebuffer size.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxVgaDxe/VBoxVgaGraphicsOutput.c

    r52069 r53263  
    8686  DEBUG((DEBUG_INFO, "%a:%d FrameBufferBase:%x\n", __FILE__, __LINE__, FrameBufDesc->AddrRangeMin));
    8787  Mode->FrameBufferBase = FrameBufDesc->AddrRangeMin;
    88   Mode->FrameBufferSize = (UINTN)(FrameBufDesc->AddrRangeMax - FrameBufDesc->AddrRangeMin);
     88  Mode->FrameBufferSize = Info->PixelsPerScanLine * Info->VerticalResolution
     89                        * sizeof(EFI_GRAPHICS_OUTPUT_BLT_PIXEL);    /* 32bpp only! */
    8990
    9091  return EFI_SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette