Changeset 33004 in vbox for trunk/src/VBox/Additions/WINNT/Graphics
- Timestamp:
- Oct 8, 2010 10:23:59 AM (14 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Display
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/vrdp.c
r32354 r33004 20 20 #include "driver.h" 21 21 #include "vrdpbmp.h" 22 #include <VBox/ VRDPOrders.h>22 #include <VBox/RemoteDesktop/VRDEOrders.h> 23 23 24 24 #define VRDP_MAKE_OP(__c) (__c) … … 372 372 BOOL bRc = FALSE; 373 373 374 VRD PDATABITS bits;374 VRDEDATABITS bits; 375 375 376 376 bits.cb = cHeight * cWidth * bytesPerPixel; … … 436 436 if (bytesPerPixel > 0) 437 437 { 438 bRc = vrdpWriteHdr (ppdev, VRDP_MAKE_OP(VRD P_ORDER_DIRTY_RECT));438 bRc = vrdpWriteHdr (ppdev, VRDP_MAKE_OP(VRDE_ORDER_DIRTY_RECT)); 439 439 440 440 if (bRc) … … 512 512 const RECTL *prcl) 513 513 { 514 VRD PORDERBOUNDS bounds;514 VRDEORDERBOUNDS bounds; 515 515 516 516 bounds.pt1.x = (int16_t)(prcl->left); … … 519 519 bounds.pt2.y = (int16_t)(prcl->bottom); 520 520 521 return vrdpReportOrder (ppdev, &bounds, sizeof (bounds), VRD P_ORDER_BOUNDS);521 return vrdpReportOrder (ppdev, &bounds, sizeof (bounds), VRDE_ORDER_BOUNDS); 522 522 } 523 523 … … 535 535 for (; i < pRects->c; i++, prcl++) 536 536 { 537 VRD PORDERREPEAT repeat;537 VRDEORDERREPEAT repeat; 538 538 539 539 repeat.bounds.pt1.x = (int16_t)(prcl->left); … … 542 542 repeat.bounds.pt2.y = (int16_t)(prcl->bottom); 543 543 544 bRc = vrdpReportOrder (ppdev, &repeat, sizeof (repeat), VRD P_ORDER_REPEAT);544 bRc = vrdpReportOrder (ppdev, &repeat, sizeof (repeat), VRDE_ORDER_REPEAT); 545 545 546 546 if (!bRc) … … 556 556 static BOOL vrdpIntersectRectWithBounds (RECTL *prclIntersect, 557 557 const RECTL *prcl, 558 const VRD PORDERBOUNDS *pBounds)558 const VRDEORDERBOUNDS *pBounds) 559 559 { 560 560 if ( prcl->left < pBounds->pt2.x /* left < bounds_right */ … … 582 582 static BOOL vrdpGetIntersectingRects (CLIPRECTS *pRects, 583 583 const VRDPCLIPRECTS *pClipRects, 584 const VRD PORDERBOUNDS *pBounds)584 const VRDEORDERBOUNDS *pBounds) 585 585 { 586 586 BOOL fReportOrder = TRUE; … … 663 663 static void vrdpReportOrderGenericBounds (PPDEV ppdev, 664 664 const VRDPCLIPRECTS *pClipRects, 665 const VRD PORDERBOUNDS *pBounds,665 const VRDEORDERBOUNDS *pBounds, 666 666 const void *pvOrder, 667 667 unsigned cbOrder, … … 681 681 ULONG rgb) 682 682 { 683 VRD PORDERSOLIDRECT order;683 VRDEORDERSOLIDRECT order; 684 684 685 685 order.x = (int16_t)prclTrg->left; … … 689 689 order.rgb = rgb; 690 690 691 vrdpReportOrderGeneric (ppdev, pClipRects, &order, sizeof (order), VRD P_ORDER_SOLIDRECT);691 vrdpReportOrderGeneric (ppdev, pClipRects, &order, sizeof (order), VRDE_ORDER_SOLIDRECT); 692 692 } 693 693 … … 698 698 uint8_t rop3) 699 699 { 700 VRD PORDERSOLIDBLT order;700 VRDEORDERSOLIDBLT order; 701 701 702 702 order.x = (int16_t)prclTrg->left; … … 707 707 order.rop = rop3; 708 708 709 vrdpReportOrderGeneric (ppdev, pClipRects, &order, sizeof (order), VRD P_ORDER_SOLIDBLT);709 vrdpReportOrderGeneric (ppdev, pClipRects, &order, sizeof (order), VRDE_ORDER_SOLIDBLT); 710 710 } 711 711 … … 717 717 uint8_t rop3) 718 718 { 719 VRD PORDERPATBLTBRUSH order;719 VRDEORDERPATBLTBRUSH order; 720 720 721 721 int8_t xSrc = 0; … … 757 757 memcpy (order.pattern, pBrush->u.pat.au8Pattern, sizeof (order.pattern)); 758 758 759 vrdpReportOrderGeneric (ppdev, pClipRects, &order, sizeof (order), VRD P_ORDER_PATBLTBRUSH);759 vrdpReportOrderGeneric (ppdev, pClipRects, &order, sizeof (order), VRDE_ORDER_PATBLTBRUSH); 760 760 } 761 761 … … 765 765 uint8_t rop3) 766 766 { 767 VRD PORDERDSTBLT order;767 VRDEORDERDSTBLT order; 768 768 769 769 order.x = (int16_t)prclTrg->left; … … 773 773 order.rop = rop3; 774 774 775 vrdpReportOrderGeneric (ppdev, pClipRects, &order, sizeof (order), VRD P_ORDER_DSTBLT);775 vrdpReportOrderGeneric (ppdev, pClipRects, &order, sizeof (order), VRDE_ORDER_DSTBLT); 776 776 } 777 777 … … 782 782 uint8_t rop3) 783 783 { 784 VRD PORDERSCREENBLT order;784 VRDEORDERSCREENBLT order; 785 785 786 786 order.x = (int16_t)prclTrg->left; … … 792 792 order.rop = rop3; 793 793 794 vrdpReportOrderGeneric (ppdev, pClipRects, &order, sizeof (order), VRD P_ORDER_SCREENBLT);794 vrdpReportOrderGeneric (ppdev, pClipRects, &order, sizeof (order), VRDE_ORDER_SCREENBLT); 795 795 } 796 796 … … 802 802 const VRDPBCHASH *phash) 803 803 { 804 VRD PORDERMEMBLT order;804 VRDEORDERMEMBLT order; 805 805 806 806 order.x = (int16_t)prcl->left; … … 815 815 memcpy (order.hash, phash, sizeof (*phash)); 816 816 817 vrdpReportOrder (ppdev, &order, sizeof (order), VRD P_ORDER_MEMBLT);817 vrdpReportOrder (ppdev, &order, sizeof (order), VRDE_ORDER_MEMBLT); 818 818 } 819 819 … … 854 854 BOOL bRc; 855 855 856 VRD PORDERCACHEDBITMAP order;856 VRDEORDERCACHEDBITMAP order; 857 857 858 858 VBVA_ASSERT(sizeof (*phash) == sizeof (order.hash)); 859 859 memcpy (order.hash, phash, sizeof (*phash)); 860 860 861 bRc = vrdpReportOrder (ppdev, &order, sizeof (order), VRD P_ORDER_CACHED_BITMAP);861 bRc = vrdpReportOrder (ppdev, &order, sizeof (order), VRDE_ORDER_CACHED_BITMAP); 862 862 863 863 if (bRc) … … 879 879 const VRDPBCHASH *phash) 880 880 { 881 VRD PORDERDELETEDBITMAP order;881 VRDEORDERDELETEDBITMAP order; 882 882 883 883 VBVA_ASSERT(sizeof (*phash) == sizeof (order.hash)); 884 884 memcpy (order.hash, phash, sizeof (*phash)); 885 885 886 vrdpReportOrder (ppdev, &order, sizeof (order), VRD P_ORDER_DELETED_BITMAP);886 vrdpReportOrder (ppdev, &order, sizeof (order), VRDE_ORDER_DELETED_BITMAP); 887 887 } 888 888 … … 1252 1252 else 1253 1253 { 1254 VRD PORDERLINE order;1254 VRDEORDERLINE order; 1255 1255 1256 1256 order.x1 = (int16_t)x1; … … 1271 1271 prclBounds->left, prclBounds->right, prclBounds->top, prclBounds->bottom, clipRects.rects.c)); 1272 1272 1273 vrdpReportOrderGeneric (ppdev, &clipRects, &order, sizeof (order), VRD P_ORDER_LINE);1273 vrdpReportOrderGeneric (ppdev, &clipRects, &order, sizeof (order), VRDE_ORDER_LINE); 1274 1274 } 1275 1275 } … … 1335 1335 } 1336 1336 1337 static void vrdpPointFX2Point (const POINTFIX *pptfx, VRD PORDERPOINT *ppt)1337 static void vrdpPointFX2Point (const POINTFIX *pptfx, VRDEORDERPOINT *ppt) 1338 1338 { 1339 1339 ppt->x = (int16_t)FXTOLROUND(pptfx->x); … … 1341 1341 } 1342 1342 1343 static void vrdpPolyPointsAdd (VRD PORDERPOLYPOINTS *pPoints, const VRDPORDERPOINT *ppt)1343 static void vrdpPolyPointsAdd (VRDEORDERPOLYPOINTS *pPoints, const VRDEORDERPOINT *ppt) 1344 1344 { 1345 1345 VBVA_ASSERT(pPoints->c < RT_ELEMENTS(pPoints->a)); … … 1350 1350 } 1351 1351 1352 static void vrdpExtendOrderBounds (VRD PORDERBOUNDS *pBounds, const VRDPORDERPOINT *ppt)1352 static void vrdpExtendOrderBounds (VRDEORDERBOUNDS *pBounds, const VRDEORDERPOINT *ppt) 1353 1353 { 1354 1354 /* Bounds have inclusive pt1 and exclusive pt2. */ … … 1434 1434 else if (ppo->fl & PO_ELLIPSE) 1435 1435 { 1436 if (vboxOrderSupported (ppdev, VRD P_ORDER_ELLIPSE))1437 { 1438 VRD PORDERELLIPSE order;1436 if (vboxOrderSupported (ppdev, VRDE_ORDER_ELLIPSE)) 1437 { 1438 VRDEORDERELLIPSE order; 1439 1439 1440 1440 order.pt1.x = (int16_t)FXTOLROUND(rcfxBounds.xLeft + 4); … … 1447 1447 order.rgb = vrdpColor2RGB (pso, pbo->iSolidColor); 1448 1448 1449 vrdpReportOrderGeneric (ppdev, &clipRects, &order, sizeof (order), VRD P_ORDER_ELLIPSE);1449 vrdpReportOrderGeneric (ppdev, &clipRects, &order, sizeof (order), VRDE_ORDER_ELLIPSE); 1450 1450 } 1451 1451 else … … 1462 1462 PATHDATA pd; 1463 1463 BOOL bMore; 1464 VRD PORDERPOLYLINE order;1465 VRD PORDERPOINT ptStart;1466 VRD PORDERBOUNDS bounds;1464 VRDEORDERPOLYLINE order; 1465 VRDEORDERPOINT ptStart; 1466 VRDEORDERBOUNDS bounds; 1467 1467 1468 1468 order.rgb = vrdpColor2RGB (pso, pbo->iSolidColor); … … 1475 1475 do { 1476 1476 POINTFIX *pptfx; 1477 VRD PORDERPOINT pt;1477 VRDEORDERPOINT pt; 1478 1478 1479 1479 bMore = PATHOBJ_bEnum (ppo, &pd); … … 1520 1520 DISPDBG((1, "vrdpStrokePath: Report order, points overflow.\n")); 1521 1521 1522 vrdpReportOrderGenericBounds (ppdev, &clipRects, &bounds, &order, sizeof (order), VRD P_ORDER_POLYLINE);1522 vrdpReportOrderGenericBounds (ppdev, &clipRects, &bounds, &order, sizeof (order), VRDE_ORDER_POLYLINE); 1523 1523 1524 1524 order.points.c = 0; … … 1550 1550 if (order.points.c > 0) 1551 1551 { 1552 vrdpReportOrderGenericBounds (ppdev, &clipRects, &bounds, &order, sizeof (order), VRD P_ORDER_POLYLINE);1552 vrdpReportOrderGenericBounds (ppdev, &clipRects, &bounds, &order, sizeof (order), VRDE_ORDER_POLYLINE); 1553 1553 } 1554 1554 … … 1727 1727 case SS_SAVE: 1728 1728 { 1729 VRD PORDERSAVESCREEN order;1729 VRDEORDERSAVESCREEN order; 1730 1730 1731 1731 order.pt1.x = (int16_t)prcl->left; … … 1737 1737 order.restore = 0; 1738 1738 1739 vrdpReportOrderGeneric (ppdev, NULL, &order, sizeof (order), VRD P_ORDER_SAVESCREEN);1739 vrdpReportOrderGeneric (ppdev, NULL, &order, sizeof (order), VRDE_ORDER_SAVESCREEN); 1740 1740 } break; 1741 1741 1742 1742 case SS_RESTORE: 1743 1743 { 1744 VRD PORDERSAVESCREEN order;1744 VRDEORDERSAVESCREEN order; 1745 1745 1746 1746 order.pt1.x = (int16_t)prcl->left; … … 1752 1752 order.restore = 1; 1753 1753 1754 if (vrdpReportOrderGeneric (ppdev, NULL, &order, sizeof (order), VRD P_ORDER_SAVESCREEN))1754 if (vrdpReportOrderGeneric (ppdev, NULL, &order, sizeof (order), VRDE_ORDER_SAVESCREEN)) 1755 1755 { 1756 1756 uint8_t *pu8Bits; -
trunk/src/VBox/Additions/WINNT/Graphics/Display/vrdpbmp.c
r31847 r33004 22 22 #include "vrdpbmp.h" 23 23 #include <iprt/crc.h> 24 #include <VBox/ VRDPOrders.h>24 #include <VBox/RemoteDesktop/VRDEOrders.h> 25 25 26 26 /* … … 211 211 int i; 212 212 213 VBVA_ASSERT(sizeof (VRDPBCHASH) == sizeof (VRD PBITMAPHASH));213 VBVA_ASSERT(sizeof (VRDPBCHASH) == sizeof (VRDEBITMAPHASH)); 214 214 215 215 /* Reinitialize the cache structure. */ -
trunk/src/VBox/Additions/WINNT/Graphics/Display/vrdptext.c
r31847 r33004 19 19 20 20 #include "driver.h" 21 #include <VBox/ VRDPOrders.h>21 #include <VBox/RemoteDesktop/VRDEOrders.h> 22 22 #include <iprt/crc.h> 23 23 … … 71 71 * represents a 'space' character might allow some optimizations. 72 72 * 73 * The VRD PORDERTEXT consists of the string info and glyph infos.73 * The VRDEORDERTEXT consists of the string info and glyph infos. 74 74 * 75 75 */ … … 80 80 uint32_t cbBitmap; 81 81 82 VRD PORDERGLYPH *pOrder = (VRDPORDERGLYPH *)*ppu8Ptr;82 VRDEORDERGLYPH *pOrder = (VRDEORDERGLYPH *)*ppu8Ptr; 83 83 84 84 GLYPHBITS *pgb = pGlyphPos->pgdf->pgb; … … 124 124 static uint32_t vboxSizeofTextOrder (ULONG cGlyphs, ULONG cbMaxGlyph) 125 125 { 126 uint32_t cb = sizeof (VRD PORDERTEXT);127 128 cb += cGlyphs * (sizeof (VRD PORDERGLYPH) + cbMaxGlyph);126 uint32_t cb = sizeof (VRDEORDERTEXT); 127 128 cb += cGlyphs * (sizeof (VRDEORDERGLYPH) + cbMaxGlyph); 129 129 130 130 return cb; … … 142 142 FONTINFO fi; 143 143 uint32_t cbOrderMax; 144 VRD PORDERTEXT *pOrder;144 VRDEORDERTEXT *pOrder; 145 145 BOOL fResult; 146 146 uint8_t *pu8GlyphPtr; … … 180 180 DISPDBG((1, "VRDP::vrdpReportText: pstro->cGlyphs = %d, fi.cjMaxGlyph1 = 0x%x, cbOrderMax = 0x%x.\n", pstro->cGlyphs, fi.cjMaxGlyph1, cbOrderMax)); 181 181 182 pOrder = (VRD PORDERTEXT *)EngAllocMem (0, cbOrderMax, ALLOC_TAG);182 pOrder = (VRDEORDERTEXT *)EngAllocMem (0, cbOrderMax, ALLOC_TAG); 183 183 184 184 if (!pOrder) … … 261 261 pOrder->cbOrder = (uint32_t)(pu8GlyphPtr - (uint8_t *)pOrder); 262 262 263 vrdpReportOrderGeneric (ppdev, pClipRects, pOrder, pOrder->cbOrder, VRD P_ORDER_TEXT);263 vrdpReportOrderGeneric (ppdev, pClipRects, pOrder, pOrder->cbOrder, VRDE_ORDER_TEXT); 264 264 } 265 265
Note:
See TracChangeset
for help on using the changeset viewer.