VirtualBox

Changeset 22388 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 21, 2009 1:37:10 PM (15 years ago)
Author:
vboxsync
Message:

Pass the number of guest monitors to VGA device.

Location:
trunk/src/VBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r22277 r22388  
    56775677     */
    56785678    if (!CFGMR3AreValuesValid(pCfgHandle, "VRamSize\0"
     5679                                          "MonitorCount\0"
    56795680                                          "GCEnabled\0"
    56805681                                          "R0Enabled\0"
     
    57165717        return PDMDevHlpVMSetError(pDevIns, VERR_INVALID_PARAMETER, RT_SRC_POS,
    57175718                                   "VRamSize is too small, %#x, max %#x", pThis->vram_size, VGA_VRAM_MIN);
     5719
     5720    rc = CFGMR3QueryU32Def(pCfgHandle, "MonitorCount", &pThis->cMonitors, 1);
     5721    AssertLogRelRCReturn(rc, rc);
    57185722
    57195723    rc = CFGMR3QueryBoolDef(pCfgHandle, "GCEnabled", &pThis->fGCEnabled, true);
  • trunk/src/VBox/Devices/Graphics/DevVGA.h

    r22274 r22388  
    285285    bool                        padding9[2];
    286286
     287    uint32_t                    cMonitors;
     288    uint32_t                    padding10;
     289
    287290#ifdef VBOX_WITH_HGSMI
    288291    R3PTRTYPE(PHGSMIINSTANCE)   pHGSMI;
  • trunk/src/VBox/Main/ConsoleImpl2.cpp

    r22384 r22388  
    774774    hrc = pMachine->COMGETTER(VRAMSize)(&cVRamMBs);                                 H();
    775775    rc = CFGMR3InsertInteger(pCfg,  "VRamSize",             cVRamMBs * _1M);        RC_CHECK();
     776    ULONG cMonitorCount;
     777    hrc = pMachine->COMGETTER(MonitorCount)(&cMonitorCount);                        H();
     778    rc = CFGMR3InsertInteger(pCfg,  "MonitorCount",         cMonitorCount);         RC_CHECK();
    776779#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE /* not safe here yet. */ /** @todo this needs fixing !!! No wonder VGA is slooooooooow on 32-bit darwin! */
    777780    rc = CFGMR3InsertInteger(pCfg,  "R0Enabled",            fHWVirtExEnabled);      RC_CHECK();
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