VirtualBox

Ignore:
Timestamp:
Oct 11, 2010 8:57:20 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
66572
Message:

Additions/WINNT/Graphics: make VBOX_WITH_HGSMI conditional code unconditional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/drv.c

    r33003 r33048  
    101101}
    102102
    103 #ifndef VBOX_WITH_HGSMI
    104 #define VBVA_OPERATION(__psoDest, __fn, __a) do {                     \
    105     if (bIsScreenSurface(__psoDest))                                  \
    106     {                                                                 \
    107         PPDEV ppdev = (PPDEV)__psoDest->dhpdev;                       \
    108                                                                       \
    109         if (ppdev->pInfo && vboxHwBufferBeginUpdate (ppdev))          \
    110         {                                                             \
    111             vbva##__fn __a;                                           \
    112                                                                       \
    113             if (  ppdev->pInfo->hostEvents.fu32Events                 \
    114                 & VBOX_VIDEO_INFO_HOST_EVENTS_F_VRDP_RESET)           \
    115             {                                                         \
    116                 vrdpReset (ppdev);                                    \
    117                                                                       \
    118                 ppdev->pInfo->hostEvents.fu32Events &=                \
    119                           ~VBOX_VIDEO_INFO_HOST_EVENTS_F_VRDP_RESET;  \
    120             }                                                         \
    121                                                                       \
    122             if (ppdev->vbva.pVbvaMemory->fu32ModeFlags                \
    123                 & VBVA_F_MODE_VRDP)                                   \
    124             {                                                         \
    125                 vrdp##__fn __a;                                       \
    126             }                                                         \
    127                                                                       \
    128             vboxHwBufferEndUpdate (ppdev);                            \
    129         }                                                             \
    130     }                                                                 \
    131 } while (0)
    132 #else
    133103#define VBVA_OPERATION(__psoDest, __fn, __a) do {                      \
    134104    if (bIsScreenSurface(__psoDest))                                   \
     
    159129    }                                                                  \
    160130} while (0)
    161 #endif /* VBOX_WITH_HGSMI */
    162131
    163132//#undef VBVA_OPERATION
     
    351320        PPDEV ppdev = (PPDEV)psoDest->dhpdev;
    352321
    353 #ifndef VBOX_WITH_HGSMI
    354         VBVAMEMORY *pVbvaMemory = ppdev->vbva.pVbvaMemory;
    355 
    356         DISPDBG((1, "offscreen->screen\n"));
    357 
    358         if (   pVbvaMemory
    359             && (pVbvaMemory->fu32ModeFlags & VBVA_F_MODE_ENABLED))
    360 #else
    361322        DISPDBG((1, "offscreen->screen\n"));
    362323
    363324        if (   ppdev->pVBVA
    364325            && (ppdev->pVBVA->hostFlags.u32HostEvents & VBVA_F_MODE_ENABLED))
    365 #endif /* VBOX_WITH_HGSMI */
    366326        {
    367327            if (   (psoSrc->fjBitmap & BMF_DONTCACHE) != 0
     
    769729        PPDEV ppdev = (PPDEV)psoTarget->dhpdev;
    770730
    771 #ifndef VBOX_WITH_HGSMI
    772         if (   ppdev->vbva.pVbvaMemory
    773             && (ppdev->vbva.pVbvaMemory->fu32ModeFlags & VBVA_F_MODE_ENABLED))
    774         {
    775             if (ppdev->vbva.pVbvaMemory->fu32ModeFlags
    776                 & VBVA_F_MODE_VRDP_RESET)
    777             {
    778                 vrdpReset (ppdev);
    779 
    780                 ppdev->vbva.pVbvaMemory->fu32ModeFlags &=
    781                     ~VBVA_F_MODE_VRDP_RESET;
    782             }
    783 
    784             if (ppdev->vbva.pVbvaMemory->fu32ModeFlags
    785                 & VBVA_F_MODE_VRDP)
    786             {
    787                 bRc = vrdpRealizeBrush (pbo, psoTarget, psoPattern, psoMask, pxlo, iHatch);
    788             }
    789         }
    790 #else
    791731        if (   ppdev->pVBVA
    792732            && (ppdev->pVBVA->hostFlags.u32HostEvents & VBVA_F_MODE_ENABLED))
     
    807747            }
    808748        }
    809 #endif /* VBOX_WITH_HGSMI */
    810749    }
    811750
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