VirtualBox

Ignore:
Timestamp:
Feb 5, 2018 5:07:12 PM (7 years ago)
Author:
vboxsync
Message:

HostServices/SharedOpenGL: bugref:9103: Improved logging of rectangles for 3D window region (Windows hosts only).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_wgl.c

    r70851 r70871  
    15901590    GLint i;
    15911591    HRGN hRgn, hTmpRgn;
     1592        RECT rectRgnBound;
    15921593
    15931594    CRASSERT(window);
     
    16021603    hRgn = CreateRectRgn(0, 0, 0, 0);
    16031604
    1604     for (i=0; i<cRects; i++)
    1605     {
    1606         hTmpRgn = CreateRectRgn(pRects[4*i], pRects[4*i+1], pRects[4*i+2], pRects[4*i+3]);
     1605    for (i = 0; i < cRects; i++)
     1606    {
     1607        crDebug("Render SPU: CreateRectRgn #%d: (%d, %d)-(%d, %d)", i,
     1608            pRects[4 * i], pRects[4 * i + 1], pRects[4 * i + 2], pRects[4 * i + 3]);
     1609
     1610        hTmpRgn = CreateRectRgn(pRects[4 * i], pRects[4 * i + 1], pRects[4 * i + 2], pRects[4 * i + 3]);
    16071611        CombineRgn(hRgn, hRgn, hTmpRgn, RGN_OR);
    16081612        DeleteObject(hTmpRgn);
     1613    }
     1614
     1615    if (GetRgnBox(hRgn, &rectRgnBound))
     1616    {
     1617        crDebug("Render SPU: Rgn bounding box (%d, %d)-(%d, %d)",
     1618            rectRgnBound.left, rectRgnBound.top, rectRgnBound.right, rectRgnBound.bottom);
    16091619    }
    16101620
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