VirtualBox

Changeset 71147 in vbox


Ignore:
Timestamp:
Feb 28, 2018 9:58:09 AM (7 years ago)
Author:
vboxsync
Message:

DevVGA, Additions: added VBE_DISPI_ID_CFG for querying the virtual graphics card features (build fix).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp

    r71146 r71147  
    6666DECLHIDDEN(bool) VBoxVGACfgAvailable(void)
    6767{
     68    uint16_t DispiId;
    6869    VBVO_PORT_WRITE_U16(VBE_DISPI_IOPORT_INDEX, VBE_DISPI_INDEX_ID);
    6970    VBVO_PORT_WRITE_U16(VBE_DISPI_IOPORT_DATA, VBE_DISPI_ID_CFG);
    70     const uint16_t DispiId = VBVO_PORT_READ_U16(VBE_DISPI_IOPORT_DATA);
     71    DispiId = VBVO_PORT_READ_U16(VBE_DISPI_IOPORT_DATA);
    7172    return (DispiId == VBE_DISPI_ID_CFG);
    7273}
     
    8384DECLHIDDEN(bool) VBoxVGACfgQuery(uint16_t u16Id, uint32_t *pu32Value)
    8485{
     86    uint32_t u32;
    8587    VBVO_PORT_WRITE_U16(VBE_DISPI_IOPORT_INDEX, VBE_DISPI_INDEX_CFG);
    8688    VBVO_PORT_WRITE_U16(VBE_DISPI_IOPORT_DATA, VBE_DISPI_CFG_MASK_SUPPORT | u16Id);
    87     const uint32_t u32 = VBVO_PORT_READ_U32(VBE_DISPI_IOPORT_DATA);
     89    u32 = VBVO_PORT_READ_U32(VBE_DISPI_IOPORT_DATA);
    8890    if (u32)
    8991    {
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