VirtualBox

Changeset 37175 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
May 21, 2011 8:51:24 PM (14 years ago)
Author:
vboxsync
Message:

Devices and Main/seamless: allow for the possibility that nothing is visible on the guest screen

Location:
trunk/src/VBox/Main/src-client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r36921 r37175  
    10481048int Display::handleSetVisibleRegion(uint32_t cRect, PRTRECT pRect)
    10491049{
    1050     RTRECT *pVisibleRegion = (RTRECT *)RTMemTmpAlloc(cRect * sizeof (RTRECT));
     1050    RTRECT *pVisibleRegion = (RTRECT *)RTMemTmpAlloc(  RT_MAX(cRect, 1)
     1051                                                     * sizeof (RTRECT));
    10511052    if (!pVisibleRegion)
    10521053    {
     
    11031104            }
    11041105
    1105             if (cRectVisibleRegion > 0)
    1106             {
    1107                 pFBInfo->pFramebuffer->SetVisibleRegion((BYTE *)pVisibleRegion, cRectVisibleRegion);
    1108             }
     1106            pFBInfo->pFramebuffer->SetVisibleRegion((BYTE *)pVisibleRegion, cRectVisibleRegion);
    11091107        }
    11101108    }
  • trunk/src/VBox/Main/src-client/VMMDevInterface.cpp

    r35907 r37175  
    464464    PDRVMAINVMMDEV pDrv = PDMIVMMDEVCONNECTOR_2_MAINVMMDEV(pInterface);
    465465    Console *pConsole = pDrv->pVMMDev->getParent();
    466 
    467     if (!cRect)
    468         return VERR_INVALID_PARAMETER;
    469466
    470467    /* Forward to Display, which calls corresponding framebuffers. */
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