VirtualBox

Ignore:
Timestamp:
Aug 26, 2013 6:13:22 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
88439
Message:

wddm,vboxtray: forward-port autoresize, multimon, and seamless fixes from 4.2 r87071, r87353, r87356, r87528, r87568, r87581, r87584, r87608, r87673, r87678, r87708, r87629, r87529; additional fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxHelpers.cpp

    r35907 r48070  
    112112
    113113void hlpResizeRect(RECTL *paRects, unsigned nRects, unsigned uPrimary,
    114                    unsigned uResized, int iNewWidth, int iNewHeight)
     114                   unsigned uResized, int iNewWidth, int iNewHeight,
     115                   int iNewPosX, int iNewPosY)
    115116{
    116117    DDCLOG(("nRects %d, iPrimary %d, iResized %d, NewWidth %d, NewHeight %d\n", nRects, uPrimary, uResized, iNewWidth, iNewHeight));
     
    120121    paNewRects[uResized].right += iNewWidth - (paNewRects[uResized].right - paNewRects[uResized].left);
    121122    paNewRects[uResized].bottom += iNewHeight - (paNewRects[uResized].bottom - paNewRects[uResized].top);
     123    paNewRects[uResized].right += iNewPosX - paNewRects[uResized].left;
     124    paNewRects[uResized].bottom += iNewPosY - paNewRects[uResized].top;
     125    paNewRects[uResized].left = iNewPosX;
     126    paNewRects[uResized].top = iNewPosY;
    122127
    123128    /* Verify all pairs of originally adjacent rectangles for all 4 directions.
Note: See TracChangeset for help on using the changeset viewer.

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