VirtualBox

Ignore:
Timestamp:
Sep 29, 2010 4:50:53 PM (14 years ago)
Author:
vboxsync
Message:

wddm/2d: 2D video accel support fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoMisc.h

    r32766 r32823  
    1313#ifndef ___VBoxVideoMisc_h__
    1414#define ___VBoxVideoMisc_h__
     15
     16DECLINLINE(void) vboxVideoLeDetach(LIST_ENTRY *pList, LIST_ENTRY *pDstList)
     17{
     18    if (IsListEmpty(pList))
     19    {
     20        InitializeListHead(pDstList);
     21    }
     22    else
     23    {
     24        *pDstList = *pList;
     25        Assert(pDstList->Flink->Blink == pList);
     26        Assert(pDstList->Blink->Flink == pList);
     27        /* pDstList->Flink & pDstList->Blink point to the "real| entries, never to pList
     28         * since we've checked IsListEmpty(pList) above */
     29        pDstList->Flink->Blink = pDstList;
     30        pDstList->Blink->Flink = pDstList;
     31        InitializeListHead(pList);
     32    }
     33}
    1534
    1635typedef struct _DEVICE_EXTENSION *PDEVICE_EXTENSION;
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