Changeset 13836 in vbox for trunk/src/VBox/Additions/WINNT/Graphics
- Timestamp:
- Nov 5, 2008 2:42:54 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 38827
- 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 87 87 { 88 88 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, 91 91 * and is either the screen device surface with handle = hsurfScreen, 92 92 * or a surface derived from DDRAW with address equal to the framebuffer. … … 302 302 303 303 STATPRINT; 304 304 305 305 #ifdef VBOX_VBVA_ADJUST_RECT 306 /* Experimental fix for too large bitmap updates. 306 /* Experimental fix for too large bitmap updates. 307 307 * 308 308 * Some application do a large bitmap update event if only … … 312 312 * the current framebuffer content with the source bitmap. 313 313 * 314 * The optimization is only active when: 314 * The optimization is only active when: 315 315 * - the VBVA extension is enabled; 316 316 * - the source bitmap is not cacheable; … … 597 597 DISPDBG((1, "DrvSaveScreenBits: SS_SAVE %d\n", ppdev->cSSB)); 598 598 599 if (ppdev->cSSB >= ELEMENTS(ppdev->aSSB))599 if (ppdev->cSSB >= RT_ELEMENTS(ppdev->aSSB)) 600 600 { 601 601 /* All slots are already in use. Fail. */ -
trunk/src/VBox/Additions/WINNT/Graphics/Display/vrdp.c
r8155 r13836 231 231 prcl->right = x + w; 232 232 prcl->bottom = y + h; 233 233 234 234 DISPDBG((1, "vrdpAdjustRect: result %d-%d %d-%d\n", prcl->left, prcl->right, prcl->top, prcl->bottom)); 235 235 } … … 1194 1194 ULONG ulForeRGB = pboFore? vrdpColor2RGB (pso, pboFore->iSolidColor): 0; 1195 1195 ULONG ulBackRGB = pboOpaque? vrdpColor2RGB (pso, pboOpaque->iSolidColor): 0; 1196 1196 1197 1197 DISPDBG((1, "VRDP::vrdpTextOut: calling vboxReportText fg %x bg %x\n", 1198 1198 ulForeRGB, ulBackRGB)); 1199 1199 1200 1200 if (!vboxReportText (ppdev, &clipRects, pstro, pfo, prclOpaque, ulForeRGB, ulBackRGB)) 1201 1201 { … … 1345 1345 static void vrdpPolyPointsAdd (VRDPORDERPOLYPOINTS *pPoints, const VRDPORDERPOINT *ppt) 1346 1346 { 1347 VBVA_ASSERT(pPoints->c < ELEMENTS(pPoints->a));1347 VBVA_ASSERT(pPoints->c < RT_ELEMENTS(pPoints->a)); 1348 1348 1349 1349 pPoints->a[pPoints->c] = *ppt; … … 1517 1517 vrdpExtendOrderBounds (&bounds, &pt); 1518 1518 1519 if (order.points.c == ELEMENTS(order.points.a))1519 if (order.points.c == RT_ELEMENTS(order.points.a)) 1520 1520 { 1521 1521 /* Flush the order and start a new order. */ … … 1538 1538 || ptStart.y != pt.y) 1539 1539 { 1540 VBVA_ASSERT(order.points.c < ELEMENTS(order.points.a));1540 VBVA_ASSERT(order.points.c < RT_ELEMENTS(order.points.a)); 1541 1541 1542 1542 vrdpPolyPointsAdd (&order.points, &ptStart); -
trunk/src/VBox/Additions/WINNT/Graphics/Display/vrdpbmp.c
r8155 r13836 144 144 /* Get the free entry to be used. Try tail, that should be */ 145 145 pEntry = pCache->tail; 146 146 147 147 if (pEntry == NULL) 148 148 { … … 221 221 222 222 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++) 226 226 { 227 227 VRDPBCENTRY *pEntry = &pCache->aEntries[i];
Note:
See TracChangeset
for help on using the changeset viewer.