VirtualBox

Ignore:
Timestamp:
Sep 5, 2013 7:45:51 PM (11 years ago)
Author:
vboxsync
Message:

crOpenGL/OSX: scrolling & docktile image fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_vreg.h

    r48275 r48325  
    4747}
    4848
     49#ifndef IN_RING0
     50DECLINLINE(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
     58DECLINLINE(void) VBoxRectStretched(const RTRECT *pRect, float xStretch, float yStretch, PRTRECT pResult)
     59{
     60    *pResult = *pRect;
     61    VBoxRectStretch(pResult, xStretch, yStretch);
     62}
     63#endif
     64
    4965DECLINLINE(void) VBoxRectIntersect(PRTRECT pRect1, const RTRECT * pRect2)
    5066{
     
    229245
    230246#define CRBLT_FTYPE_XOR                 CRBLT_F_INVERT_YCOORDS
    231 #define CRBLT_FTYPE_OR                  CRBLT_F_LINEAR
     247#define CRBLT_FTYPE_OR                  (CRBLT_F_LINEAR | CRBLT_F_NOALPHA)
    232248#define CRBLT_FOP_COMBINE(_f1, _f2)     ((((_f1) ^ (_f2)) & CRBLT_FTYPE_XOR) | (((_f1) | (_f2)) & CRBLT_FTYPE_OR))
    233249
     
    420436#ifndef IN_RING0
    421437VBOXVREGDECL(void) CrVrScrCompositorSetStretching(PVBOXVR_SCR_COMPOSITOR pCompositor, float StretchX, float StretchY);
     438DECLINLINE(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}
    422446#endif
    423447/* regions are valid until the next CrVrScrCompositor call */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette