VirtualBox

Changeset 34377 in vbox for trunk


Ignore:
Timestamp:
Nov 25, 2010 3:40:13 PM (14 years ago)
Author:
vboxsync
Message:

Main/Display: check framebuffer before updating it.

File:
1 edited

Legend:

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

    r34188 r34377  
    26722672    for (uScreenId = 0; uScreenId < pDisplay->mcMonitors; uScreenId++)
    26732673    {
    2674         if (uScreenId == VBOX_VIDEO_PRIMARY_SCREEN)
     2674        DISPLAYFBINFO *pFBInfo = &pDisplay->maFramebuffers[uScreenId];
     2675
     2676        if (uScreenId == VBOX_VIDEO_PRIMARY_SCREEN && !pFBInfo->pFramebuffer.isNull())
    26752677        {
    26762678            pDisplay->mpDrv->pUpPort->pfnUpdateDisplayAll(pDisplay->mpDrv->pUpPort);
     
    26782680        else
    26792681        {
    2680             DISPLAYFBINFO *pFBInfo = &pDisplay->maFramebuffers[uScreenId];
    2681 
    26822682            if (!pFBInfo->pFramebuffer.isNull())
    26832683            {
     
    36803680        {
    36813681            /* Make sure that framebuffer contains the same image as the guest VRAM. */
    3682             if (uScreenId == VBOX_VIDEO_PRIMARY_SCREEN)
     3682            if (uScreenId == VBOX_VIDEO_PRIMARY_SCREEN && !pFBInfo->pFramebuffer.isNull())
    36833683            {
    36843684                pDrv->pUpPort->pfnUpdateDisplayRect (pDrv->pUpPort, pCmd->x, pCmd->y, pCmd->w, pCmd->h);
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