Changeset 32577 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm
- Timestamp:
- Sep 16, 2010 6:11:27 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoIf.h
r32496 r32577 419 419 } 420 420 421 DECLINLINE(bool) vboxWddmRectIsEmpty( RECT * pRect)421 DECLINLINE(bool) vboxWddmRectIsEmpty(const RECT * pRect) 422 422 { 423 423 return pRect->left == pRect->right-1 && pRect->top == pRect->bottom-1; 424 424 } 425 425 426 DECLINLINE(bool) vboxWddmRectIsIntersect( RECT * pRect1,RECT * pRect2)426 DECLINLINE(bool) vboxWddmRectIsIntersect(const RECT * pRect1, const RECT * pRect2) 427 427 { 428 428 return !((pRect1->left < pRect2->left && pRect1->right < pRect2->left) … … 432 432 } 433 433 434 DECLINLINE(bool) vboxWddmRectIsInclude(RECT * pRect1, RECT * pRect2)435 {436 return ((pRect1->left <= pRect2->left && pRect1->right >= pRect2->right)437 && (pRect1->top <= pRect2->top && pRect1->bottom >= pRect2->bottom));438 }439 440 434 DECLINLINE(void) vboxWddmRectUnited(RECT * pDst, const RECT * pRect1, const RECT * pRect2) 441 435 { … … 452 446 pRect->right += x; 453 447 pRect->bottom += y; 448 } 449 450 DECLINLINE(void) vboxWddmRectMove(RECT * pRect, int x, int y) 451 { 452 LONG w = pRect->right - pRect->left; 453 LONG h = pRect->bottom - pRect->top; 454 pRect->left = x; 455 pRect->top = y; 456 pRect->right = w + x; 457 pRect->bottom = h + y; 458 } 459 460 DECLINLINE(void) vboxWddmRectTranslated(RECT *pDst, const RECT * pRect, int x, int y) 461 { 462 *pDst = *pRect; 463 vboxWddmRectTranslate(pDst, x, y); 464 } 465 466 DECLINLINE(void) vboxWddmRectMoved(RECT *pDst, const RECT * pRect, int x, int y) 467 { 468 *pDst = *pRect; 469 vboxWddmRectMove(pDst, x, y); 454 470 } 455 471
Note:
See TracChangeset
for help on using the changeset viewer.