VirtualBox

Changeset 3155 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jun 19, 2007 11:25:14 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
22077
Message:

Allow the VM to start with NULL framebuffer.

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • 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.

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