VirtualBox

Changeset 3155 in vbox for trunk


Ignore:
Timestamp:
Jun 19, 2007 11:25:14 AM (18 years ago)
Author:
vboxsync
Message:

Allow the VM to start with NULL framebuffer.

Location:
trunk/src/VBox
Files:
4 edited

Legend:

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

    r3153 r3155  
    43974397                if (pData->pDrv)
    43984398                {
    4399                     if (    pData->pDrv->pu8Data
    4400                         &&  pData->pDrv->pfnRefresh
     4399                    /* pData->pDrv->pu8Data can be NULL when there is no framebuffer. */
     4400                    if (    pData->pDrv->pfnRefresh
    44014401                        &&  pData->pDrv->pfnResize
    44024402                        &&  pData->pDrv->pfnUpdateRect)
     
    44044404                    else
    44054405                    {
    4406                         Assert(pData->pDrv->pu8Data);
    44074406                        Assert(pData->pDrv->pfnRefresh);
    44084407                        Assert(pData->pDrv->pfnResize);
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r3127 r3155  
    49364936    ULONG ulHeightReduction;
    49374937    IFramebuffer *pFramebuffer = pConsole->getDisplay()->getFramebuffer();
    4938     hrc = pFramebuffer->COMGETTER(HeightReduction)(&ulHeightReduction);             H();
     4938    if (pFramebuffer)
     4939    {
     4940        hrc = pFramebuffer->COMGETTER(HeightReduction)(&ulHeightReduction);         H();
     4941    }
     4942    else
     4943    {
     4944        /* If framebuffer is not available, there is no height reduction. */
     4945        ulHeightReduction = 0;
     4946    }
    49394947    rc = CFGMR3InsertInteger(pCfg,  "HeightReduction", ulHeightReduction);          RC_CHECK();
    49404948
  • trunk/src/VBox/Main/MouseImpl.cpp

    r2981 r3155  
    274274    ComAssertComRCRet (rc, rc);
    275275
    276     uint32_t mouseXAbs = (x * 0xFFFF) / displayWidth;
    277     uint32_t mouseYAbs = (y * 0xFFFF) / displayHeight;
     276    uint32_t mouseXAbs = displayWidth? (x * 0xFFFF) / displayWidth: 0;
     277    uint32_t mouseYAbs = displayHeight? (y * 0xFFFF) / displayHeight: 0;
    278278
    279279    /*
  • trunk/src/VBox/Main/VMMDevInterface.cpp

    r3076 r3155  
    269269        return VERR_INVALID_PARAMETER;
    270270    IFramebuffer *framebuffer = pDrv->pVMMDev->getParent()->getDisplay()->getFramebuffer();
    271     Assert(framebuffer);
    272     framebuffer->VideoModeSupported(width, height, bpp, (BOOL*)fSupported);
     271    if (framebuffer)
     272        framebuffer->VideoModeSupported(width, height, bpp, (BOOL*)fSupported);
     273    else
     274        *fSupported = true;
    273275    return VINF_SUCCESS;
    274276}
     
    281283        return VERR_INVALID_PARAMETER;
    282284    IFramebuffer *framebuffer = pDrv->pVMMDev->getParent()->getDisplay()->getFramebuffer();
    283     Assert(framebuffer);
    284     framebuffer->COMGETTER(HeightReduction)((ULONG*)heightReduction);
     285    if (framebuffer)
     286        framebuffer->COMGETTER(HeightReduction)((ULONG*)heightReduction);
     287    else
     288        *heightReduction = 0;
    285289    return VINF_SUCCESS;
    286290}
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