VirtualBox

Changeset 43310 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Sep 12, 2012 11:32:34 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
80731
Message:

Additions/x11/vboxvideo: small efficiency fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/vbva.c

    r43245 r43310  
    5959        return;
    6060
    61     for (i = 0; i < iRects; ++i)
    62         for (j = 0; j < pVBox->cScreens; ++j)
     61    for (j = 0; j < pVBox->cScreens; ++j)
     62    {
     63        /* Just continue quietly if VBVA is not currently active. */
     64        struct VBVABUFFER *pVBVA = pVBox->aVbvaCtx[j].pVBVA;
     65        if (   !pVBVA
     66            || !(pVBVA->hostFlags.u32HostEvents & VBVA_F_MODE_ENABLED))
     67            continue;
     68        for (i = 0; i < iRects; ++i)
    6369        {
    64             /* Just continue quietly if VBVA is not currently active. */
    65             struct VBVABUFFER *pVBVA = pVBox->aVbvaCtx[j].pVBVA;
    66             if (   !pVBVA
    67                 || !(pVBVA->hostFlags.u32HostEvents & VBVA_F_MODE_ENABLED))
    68                 continue;
    6970            if (   aRects[i].x1 >   pVBox->aScreenLocation[j].x
    7071                                  + pVBox->aScreenLocation[j].cx
     
    9293            }
    9394        }
     95    }
    9496}
    9597
     
    121123    int rc = VINF_SUCCESS;
    122124
     125    /* Why is this here?  In case things break before we have found the real
     126     * count? */
    123127    pVBox->cScreens = 1;
    124128    if (!VBoxHGSMIIsSupported())
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