VirtualBox

Changeset 60589 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Apr 20, 2016 10:06:40 AM (9 years ago)
Author:
vboxsync
Message:

Additions/WDDM: Smaller cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp

    r60588 r60589  
    19691969        {
    19701970            VSyncTime.QuadPart = VSyncTime.QuadPart - DevVSyncTime.QuadPart;
    1971             /* Check whether we are in VBlank state or actively drawing a scan line
     1971            /*
     1972             * Check whether we are in VBlank state or actively drawing a scan line
    19721973             * 10% of the 60Hz are dedicated to VBlank.
     1974             *
     1975             * Time intervals are in 100ns steps.
    19731976             */
    19741977            LARGE_INTEGER VSyncPeriod;
    19751978            VSyncPeriod.QuadPart = VSyncTime.QuadPart % 166666LL; /* ASSUMES 60Hz*/
    1976             if (VSyncPeriod.QuadPart > 150000LL)
     1979            if (VSyncPeriod.QuadPart >= 150000LL)
    19771980                bVBlank = TRUE;
    19781981            else
    1979             {
    1980                 /* time is in 100ns, */
    19811982                curScanLine = (uint32_t)((pTarget->Size.cy * VSyncPeriod.QuadPart) / 150000LL);
    1982                 if (pDevExt->bVSyncTimerEnabled)
    1983                 {
    1984                     if (curScanLine > pTarget->Size.cy)
    1985                         curScanLine = pTarget->Size.cy;
    1986                 }
    1987                 else
    1988                     curScanLine %= pTarget->Size.cy;
    1989             }
    19901983        }
    19911984
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