Changeset 95964 in vbox
- Timestamp:
- Aug 1, 2022 2:20:48 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 152721
- Location:
- trunk/src/VBox/Additions/WINNT/VBoxTray
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxHelpers.cpp
r95827 r95964 117 117 int iNewPosX, int iNewPosY) 118 118 { 119 DDCLOG(("nRects %d, iPrimary %d, iResized %d, NewWidth %d, NewHeight %d\n", nRects, uPrimary, uResized, iNewWidth, iNewHeight));119 Log4Func(("nRects %d, iPrimary %d, iResized %d, NewWidth %d, NewHeight %d\n", nRects, uPrimary, uResized, iNewWidth, iNewHeight)); 120 120 121 121 RECTL *paNewRects = (RECTL *)alloca (sizeof (RECTL) * nRects); … … 140 140 /* Find the next adjacent original rect in x positive direction. */ 141 141 unsigned iNextRect = hlpNextAdjacentRectXP(paRects, nRects, iRect); 142 DDCLOG(("next %d -> %d\n", iRect, iNextRect));142 Log4Func(("next %d -> %d\n", iRect, iNextRect)); 143 143 144 144 if (iNextRect == ~0 || iNextRect == uPrimary) … … 154 154 if (delta != 0) 155 155 { 156 DDCLOG(("XP intersection right %d left %d, diff %d\n",157 paNewRects[iRect].right, paNewRects[iNextRect].left,158 delta));156 Log4Func(("XP intersection right %d left %d, diff %d\n", 157 paNewRects[iRect].right, paNewRects[iNextRect].left, 158 delta)); 159 159 160 160 paNewRects[iNextRect].left += delta; … … 168 168 /* Find the next adjacent original rect in x negative direction. */ 169 169 unsigned iNextRect = hlpNextAdjacentRectXN(paRects, nRects, iRect); 170 DDCLOG(("next %d -> %d\n", iRect, iNextRect));170 Log4Func(("next %d -> %d\n", iRect, iNextRect)); 171 171 172 172 if (iNextRect == ~0 || iNextRect == uPrimary) … … 182 182 if (delta != 0) 183 183 { 184 DDCLOG(("XN intersection left %d right %d, diff %d\n",185 paNewRects[iRect].left, paNewRects[iNextRect].right,186 delta));184 Log4Func(("XN intersection left %d right %d, diff %d\n", 185 paNewRects[iRect].left, paNewRects[iNextRect].right, 186 delta)); 187 187 188 188 paNewRects[iNextRect].left += delta; … … 196 196 /* Find the next adjacent original rect in y positive direction. */ 197 197 unsigned iNextRect = hlpNextAdjacentRectYP(paRects, nRects, iRect); 198 DDCLOG(("next %d -> %d\n", iRect, iNextRect));198 Log4Func(("next %d -> %d\n", iRect, iNextRect)); 199 199 200 200 if (iNextRect == ~0 || iNextRect == uPrimary) … … 210 210 if (delta != 0) 211 211 { 212 DDCLOG(("YP intersection bottom %d top %d, diff %d\n",213 paNewRects[iRect].bottom, paNewRects[iNextRect].top,214 delta));212 Log4Func(("YP intersection bottom %d top %d, diff %d\n", 213 paNewRects[iRect].bottom, paNewRects[iNextRect].top, 214 delta)); 215 215 216 216 paNewRects[iNextRect].top += delta; … … 224 224 /* Find the next adjacent original rect in x negative direction. */ 225 225 unsigned iNextRect = hlpNextAdjacentRectYN(paRects, nRects, iRect); 226 DDCLOG(("next %d -> %d\n", iRect, iNextRect));226 Log4Func(("next %d -> %d\n", iRect, iNextRect)); 227 227 228 228 if (iNextRect == ~0 || iNextRect == uPrimary) … … 238 238 if (delta != 0) 239 239 { 240 DDCLOG(("YN intersection top %d bottom %d, diff %d\n",241 paNewRects[iRect].top, paNewRects[iNextRect].bottom,242 delta));240 Log4Func(("YN intersection top %d bottom %d, diff %d\n", 241 paNewRects[iRect].top, paNewRects[iNextRect].bottom, 242 delta)); 243 243 244 244 paNewRects[iNextRect].top += delta; … … 256 256 paRects[iRect].top = paNewRects[iRect].top - iOffsetY; 257 257 paRects[iRect].bottom = paNewRects[iRect].bottom - iOffsetY; 258 DDCLOG((" [%d]: %d,%d %dx%d -> %d,%d %dx%d%s\n",259 iRect,260 paRects[iRect].left, paRects[iRect].top,261 paRects[iRect].right - paRects[iRect].left,262 paRects[iRect].bottom - paRects[iRect].top,263 paNewRects[iRect].left, paNewRects[iRect].top,264 paNewRects[iRect].right - paNewRects[iRect].left,265 paNewRects[iRect].bottom - paNewRects[iRect].top,266 iRect == uPrimary? " <- primary": ""));258 Log4Func((" [%d]: %d,%d %dx%d -> %d,%d %dx%d%s\n", 259 iRect, 260 paRects[iRect].left, paRects[iRect].top, 261 paRects[iRect].right - paRects[iRect].left, 262 paRects[iRect].bottom - paRects[iRect].top, 263 paNewRects[iRect].left, paNewRects[iRect].top, 264 paNewRects[iRect].right - paNewRects[iRect].left, 265 paNewRects[iRect].bottom - paNewRects[iRect].top, 266 iRect == uPrimary? " <- primary": "")); 267 267 } 268 268 return; -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxHelpers.h
r95827 r95964 22 22 #endif 23 23 24 // #define DEBUG_DISPLAY_CHANGE25 26 /** @todo r=andy WTF? Remove this!! */27 #ifdef DEBUG_DISPLAY_CHANGE28 # define DDCLOG(a) Log(a)29 #else30 # define DDCLOG(a) do {} while (0)31 #endif /* !DEBUG_DISPLAY_CHANGE */32 33 24 extern int hlpReportStatus(VBoxGuestFacilityStatus statusCurrent); 34 25 extern void hlpReloadCursor(void);
Note:
See TracChangeset
for help on using the changeset viewer.