VirtualBox

Ignore:
Timestamp:
Sep 16, 2010 6:11:27 PM (14 years ago)
Author:
vboxsync
Message:

wddm/3d: aero working on win7 (window contents still corrupted)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoIf.h

    r32496 r32577  
    419419}
    420420
    421 DECLINLINE(bool) vboxWddmRectIsEmpty(RECT * pRect)
     421DECLINLINE(bool) vboxWddmRectIsEmpty(const RECT * pRect)
    422422{
    423423    return pRect->left == pRect->right-1 && pRect->top == pRect->bottom-1;
    424424}
    425425
    426 DECLINLINE(bool) vboxWddmRectIsIntersect(RECT * pRect1, RECT * pRect2)
     426DECLINLINE(bool) vboxWddmRectIsIntersect(const RECT * pRect1, const RECT * pRect2)
    427427{
    428428    return !((pRect1->left < pRect2->left && pRect1->right < pRect2->left)
     
    432432}
    433433
    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 
    440434DECLINLINE(void) vboxWddmRectUnited(RECT * pDst, const RECT * pRect1, const RECT * pRect2)
    441435{
     
    452446    pRect->right  += x;
    453447    pRect->bottom += y;
     448}
     449
     450DECLINLINE(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
     460DECLINLINE(void) vboxWddmRectTranslated(RECT *pDst, const RECT * pRect, int x, int y)
     461{
     462    *pDst = *pRect;
     463    vboxWddmRectTranslate(pDst, x, y);
     464}
     465
     466DECLINLINE(void) vboxWddmRectMoved(RECT *pDst, const RECT * pRect, int x, int y)
     467{
     468    *pDst = *pRect;
     469    vboxWddmRectMove(pDst, x, y);
    454470}
    455471
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