VirtualBox

Changeset 35612 in vbox


Ignore:
Timestamp:
Jan 18, 2011 2:34:31 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
69509
Message:

Main/Display: make sure that we do not try to update a disabled screen, and revert the 640x480 disabled resolution for now

File:
1 edited

Legend:

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

    r35576 r35612  
    774774            pFBInfo->fDefaultFormat = (usesGuestVRAM == FALSE);
    775775
    776             mpDrv->pUpPort->pfnSetRenderVRAM (mpDrv->pUpPort, pFBInfo->fDefaultFormat);
     776            if (pFBInfo->fDisabled)
     777                mpDrv->pUpPort->pfnSetRenderVRAM (mpDrv->pUpPort, false);
     778            else
     779                mpDrv->pUpPort->pfnSetRenderVRAM (mpDrv->pUpPort,
     780                                                  pFBInfo->fDefaultFormat);
    777781        }
    778782        else if (!pFBInfo->pFramebuffer.isNull())
     
    919923
    920924    // if there is no framebuffer, this call is not interesting
    921     if (pFramebuffer == NULL)
     925    if (   pFramebuffer == NULL
     926        || maFramebuffers[uScreenId].fDisabled)
    922927        return;
    923928
     
    964969    if (!mpDrv)
    965970        return;
    966     /* If VBVA is not in use then maFramebuffers will be zeroed out and this
     971    /* If VBVA is not in use then this flag will not be set and this
    967972     * will still work as it should. */
    968     if (!(maFramebuffers[0].flags & VBVA_SCREEN_F_DISABLED))
     973    if (!(maFramebuffers[0].fDisabled))
    969974    {
    970975        x2 = mpDrv->IConnector.cx + (int32_t)maFramebuffers[0].xOrigin;
     
    973978    for (unsigned i = 1; i < mcMonitors; ++i)
    974979    {
    975         if (!(maFramebuffers[i].flags & VBVA_SCREEN_F_DISABLED))
     980        if (!(maFramebuffers[i].fDisabled))
    976981        {
    977982            x1 = RT_MIN(x1, maFramebuffers[i].xOrigin);
     
    25422547                 */
    25432548                if (   pFBInfo->fDefaultFormat
    2544                     && !(pFBInfo->flags & VBVA_SCREEN_F_DISABLED))
     2549                    && !(pFBInfo->fDisabled))
    25452550                {
    25462551                    address = NULL;
     
    26672672        {
    26682673            if (   !pFBInfo->pFramebuffer.isNull()
    2669                 && !(pFBInfo->flags & VBVA_SCREEN_F_DISABLED))
     2674                && !(pFBInfo->fDisabled))
    26702675            {
    26712676                /* Render complete VRAM screen to the framebuffer.
     
    28362841    IFramebuffer *pFramebuffer = maFramebuffers[VBOX_VIDEO_PRIMARY_SCREEN].pFramebuffer;
    28372842
    2838     if (   pFramebuffer
    2839         && !(  maFramebuffers[VBOX_VIDEO_PRIMARY_SCREEN].flags
    2840              & VBVA_SCREEN_F_DISABLED))
     2843    if (pFramebuffer)
    28412844    {
    28422845        HRESULT rc;
     
    35953598        {
    35963599            /* Make sure that framebuffer contains the same image as the guest VRAM. */
    3597             if (uScreenId == VBOX_VIDEO_PRIMARY_SCREEN && !pFBInfo->pFramebuffer.isNull())
     3600            if (   uScreenId == VBOX_VIDEO_PRIMARY_SCREEN
     3601                && !pFBInfo->pFramebuffer.isNull()
     3602                && !pFBInfo->fDisabled)
    35983603            {
    35993604                pDrv->pUpPort->pfnUpdateDisplayRect (pDrv->pUpPort, pCmd->x, pCmd->y, pCmd->w, pCmd->h);
    36003605            }
    36013606            else if (   !pFBInfo->pFramebuffer.isNull()
    3602                      && !(pFBInfo->flags & VBVA_SCREEN_F_DISABLED))
     3607                     && !(pFBInfo->fDisabled))
    36033608            {
    36043609                /* Render VRAM content to the framebuffer. */
     
    37233728        pThis->handleDisplayResize(pScreen->u32ViewIndex, 0,
    37243729                                   (uint8_t *)NULL,
    3725                                    0, 640, 480, pScreen->u16Flags);
     3730                                   pScreen->u32LineSize, pScreen->u32Width,
     3731                                   pScreen->u32Height, pScreen->u16Flags);
    37263732
    37273733        fireGuestMonitorChangedEvent(pThis->mParent->getEventSource(),
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