VirtualBox

Ignore:
Timestamp:
Nov 5, 2008 2:42:54 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
38827
Message:

s/ELEMENTS/RT_ELEMENTS/g - retiring ELEMENTS (finally).

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Display
Files:
3 edited

Legend:

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

    r8155 r13836  
    8787    {
    8888        PPDEV ppdev = (PPDEV)pso->dhpdev;
    89        
    90         /* The screen surface has the 'pso->dhpdev' field, 
     89
     90        /* The screen surface has the 'pso->dhpdev' field,
    9191         * and is either the screen device surface with handle = hsurfScreen,
    9292         * or a surface derived from DDRAW with address equal to the framebuffer.
     
    302302
    303303    STATPRINT;
    304    
     304
    305305#ifdef VBOX_VBVA_ADJUST_RECT
    306     /* Experimental fix for too large bitmap updates. 
     306    /* Experimental fix for too large bitmap updates.
    307307     *
    308308     * Some application do a large bitmap update event if only
     
    312312     * the current framebuffer content with the source bitmap.
    313313     *
    314      * The optimization is only active when: 
     314     * The optimization is only active when:
    315315     *  - the VBVA extension is enabled;
    316316     *  - the source bitmap is not cacheable;
     
    597597            DISPDBG((1, "DrvSaveScreenBits: SS_SAVE %d\n", ppdev->cSSB));
    598598
    599             if (ppdev->cSSB >= ELEMENTS(ppdev->aSSB))
     599            if (ppdev->cSSB >= RT_ELEMENTS(ppdev->aSSB))
    600600            {
    601601                /* All slots are already in use. Fail. */
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/vrdp.c

    r8155 r13836  
    231231    prcl->right  = x + w;
    232232    prcl->bottom = y + h;
    233    
     233
    234234    DISPDBG((1, "vrdpAdjustRect: result %d-%d %d-%d\n", prcl->left, prcl->right, prcl->top, prcl->bottom));
    235235}
     
    11941194        ULONG ulForeRGB = pboFore? vrdpColor2RGB (pso, pboFore->iSolidColor): 0;
    11951195        ULONG ulBackRGB = pboOpaque? vrdpColor2RGB (pso, pboOpaque->iSolidColor): 0;
    1196        
     1196
    11971197        DISPDBG((1, "VRDP::vrdpTextOut: calling vboxReportText fg %x bg %x\n",
    11981198                    ulForeRGB, ulBackRGB));
    1199                    
     1199
    12001200        if (!vboxReportText (ppdev, &clipRects, pstro, pfo, prclOpaque, ulForeRGB, ulBackRGB))
    12011201        {
     
    13451345static void vrdpPolyPointsAdd (VRDPORDERPOLYPOINTS *pPoints, const VRDPORDERPOINT *ppt)
    13461346{
    1347     VBVA_ASSERT(pPoints->c < ELEMENTS(pPoints->a));
     1347    VBVA_ASSERT(pPoints->c < RT_ELEMENTS(pPoints->a));
    13481348
    13491349    pPoints->a[pPoints->c] = *ppt;
     
    15171517                vrdpExtendOrderBounds (&bounds, &pt);
    15181518
    1519                 if (order.points.c == ELEMENTS(order.points.a))
     1519                if (order.points.c == RT_ELEMENTS(order.points.a))
    15201520                {
    15211521                    /* Flush the order and start a new order. */
     
    15381538                    || ptStart.y != pt.y)
    15391539                {
    1540                     VBVA_ASSERT(order.points.c < ELEMENTS(order.points.a));
     1540                    VBVA_ASSERT(order.points.c < RT_ELEMENTS(order.points.a));
    15411541
    15421542                    vrdpPolyPointsAdd     (&order.points, &ptStart);
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/vrdpbmp.c

    r8155 r13836  
    144144    /* Get the free entry to be used. Try tail, that should be */
    145145    pEntry = pCache->tail;
    146    
     146
    147147    if (pEntry == NULL)
    148148    {
     
    221221
    222222    pCache->head = &pCache->aEntries[0];
    223     pCache->tail = &pCache->aEntries[ELEMENTS(pCache->aEntries) - 1];
    224 
    225     for (i = 0; i < ELEMENTS(pCache->aEntries); i++)
     223    pCache->tail = &pCache->aEntries[RT_ELEMENTS(pCache->aEntries) - 1];
     224
     225    for (i = 0; i < RT_ELEMENTS(pCache->aEntries); i++)
    226226    {
    227227        VRDPBCENTRY *pEntry = &pCache->aEntries[i];
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