VirtualBox

Ignore:
Timestamp:
May 21, 2010 4:11:46 PM (15 years ago)
Author:
vboxsync
Message:

wddm/2D: handle number of overlays properly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoVhwa.cpp

    r29742 r29745  
    342342    if (pInfo1)
    343343    {
    344         if (pInfo1->u.out.cfgFlags & VBOXVHWA_CFG_ENABLED)
     344        if ((pInfo1->u.out.cfgFlags & VBOXVHWA_CFG_ENABLED)
     345                && pInfo1->u.out.numOverlays)
    345346        {
    346347            if ((pInfo1->u.out.caps & VBOXVHWA_CAPS_OVERLAY)
     
    367368                    }
    368369                }
     370
     371                pSettings->cOverlaysSupported = pInfo1->u.out.numOverlays;
    369372
    370373                pSettings->cFormats = 0;
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