Changeset 48325 in vbox for trunk/src/VBox/GuestHost/OpenGL/include
- Timestamp:
- Sep 5, 2013 7:45:51 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/include/cr_vreg.h
r48275 r48325 47 47 } 48 48 49 #ifndef IN_RING0 50 DECLINLINE(void) VBoxRectStretch(PRTRECT pRect, float xStretch, float yStretch) 51 { 52 pRect->xLeft = pRect->xLeft * xStretch; 53 pRect->yTop = pRect->yTop * yStretch; 54 pRect->xRight = pRect->xRight * xStretch; 55 pRect->yBottom = pRect->yBottom * yStretch; 56 } 57 58 DECLINLINE(void) VBoxRectStretched(const RTRECT *pRect, float xStretch, float yStretch, PRTRECT pResult) 59 { 60 *pResult = *pRect; 61 VBoxRectStretch(pResult, xStretch, yStretch); 62 } 63 #endif 64 49 65 DECLINLINE(void) VBoxRectIntersect(PRTRECT pRect1, const RTRECT * pRect2) 50 66 { … … 229 245 230 246 #define CRBLT_FTYPE_XOR CRBLT_F_INVERT_YCOORDS 231 #define CRBLT_FTYPE_OR CRBLT_F_LINEAR247 #define CRBLT_FTYPE_OR (CRBLT_F_LINEAR | CRBLT_F_NOALPHA) 232 248 #define CRBLT_FOP_COMBINE(_f1, _f2) ((((_f1) ^ (_f2)) & CRBLT_FTYPE_XOR) | (((_f1) | (_f2)) & CRBLT_FTYPE_OR)) 233 249 … … 420 436 #ifndef IN_RING0 421 437 VBOXVREGDECL(void) CrVrScrCompositorSetStretching(PVBOXVR_SCR_COMPOSITOR pCompositor, float StretchX, float StretchY); 438 DECLINLINE(void) CrVrScrCompositorGetStretching(PVBOXVR_SCR_COMPOSITOR pCompositor, float *pStretchX, float *pStretchY) 439 { 440 if (pStretchX) 441 *pStretchX = pCompositor->StretchX; 442 443 if (pStretchY) 444 *pStretchY = pCompositor->StretchY; 445 } 422 446 #endif 423 447 /* regions are valid until the next CrVrScrCompositor call */
Note:
See TracChangeset
for help on using the changeset viewer.