VirtualBox

Changeset 35269 in vbox


Ignore:
Timestamp:
Dec 20, 2010 11:32:03 PM (14 years ago)
Author:
vboxsync
Message:

Additions/x11/vboxvideo: fix broken dynamic resizing on additional monitors

Location:
trunk/src/VBox/Additions/x11/vboxvideo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxutils.c

    r35268 r35269  
    879879    if (!pVBox->useDevice)
    880880        return FALSE;
    881     int rc = VbglR3GetDisplayChangeRequest(pcx, pcy, pcBits, piDisplay, true);
     881    int rc = VbglR3GetDisplayChangeRequest(pcx, pcy, pcBits, piDisplay, false);
    882882    if (RT_SUCCESS(rc))
    883883        return TRUE;
     
    10861086{
    10871087    /* Query the host for the preferred resolution and colour depth */
    1088     uint32_t cx = 0, cy = 0, iScreenIn = 0, cBits = 32;
    1089     VBOXPtr pVBox = pScrn->driverPrivate;
    1090 
    1091     TRACE_ENTRY();
     1088    uint32_t cx = 0, cy = 0, iScreenIn = iScreen, cBits = 32;
     1089    VBOXPtr pVBox = pScrn->driverPrivate;
     1090
     1091    TRACE_LOG("iScreen=%u\n", iScreen);
    10921092    bool found = false;
    10931093    if (   pVBox->aPreferredSize[iScreen].cx
     
    11281128    if (pcy)
    11291129        *pcy = cy;
    1130     if (pcx)
     1130    if (pcBits)
    11311131        *pcBits = cBits;
     1132    TRACE_LOG("cx=%u, cy=%u, cBits=%u\n", cx, cy, cBits);
    11321133}
    11331134
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c

    r35268 r35269  
    483483            return FALSE;
    484484        strncpy(sz, value->data, value->size);
     485        TRACE_LOG("screen=%u, property value=%s\n", cDisplay, sz);
    485486        if (sscanf(sz, "%dx%d", &w, &h) != 2)
    486487            return FALSE;
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