VirtualBox

Changeset 22388 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Aug 21, 2009 1:37:10 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
51335
Message:

Pass the number of guest monitors to VGA device.

Location:
trunk/src/VBox/Devices/Graphics
Files:
2 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;
Note: See TracChangeset for help on using the changeset viewer.

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