Changeset 47068 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 10, 2013 11:14:56 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBufferQuartz2D.cpp
r47067 r47068 39 39 # include <iprt/asm.h> 40 40 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 41 42 //#define COMP_WITH_SHADOW43 //#define OVERLAY_CLIPRECTS44 41 45 42 /** @class UIFrameBufferQuartz2D … … 254 251 CGContextClearRect(ctx, viewRect); 255 252 256 #ifdef OVERLAY_CLIPRECTS257 /* Enable overlay above the seamless mask: */258 CGContextSetRGBFillColor(ctx, 0.0, 0.0, 5.0, 0.7);259 CGContextFillRect(ctx, viewRect);260 #endif /* OVERLAY_CLIPRECTS */261 #ifdef COMP_WITH_SHADOW262 /* Enable shadows: */263 CGContextSetShadow(ctx, CGSizeMake (10, -10), 10);264 CGContextBeginTransparencyLayer(ctx, NULL);265 #endif /* COMP_WITH_SHADOW */266 267 253 /* Determine current visible region: */ 268 254 RegionRects *pRgnRcts = ASMAtomicXchgPtrT(&mRegion, NULL, RegionRects*); … … 324 310 CGImageRelease(subImage); 325 311 } 326 327 #ifdef COMP_WITH_SHADOW328 CGContextEndTransparencyLayer(ctx);329 #endif /* COMP_WITH_SHADOW */330 #ifdef OVERLAY_CLIPRECTS331 if (pRgnRcts && pRgnRcts->used > 0)332 {333 CGContextBeginPath(ctx);334 CGContextAddRects(ctx, pRgnRcts->rcts, pRgnRcts->used);335 CGContextSetRGBStrokeColor(ctx, 1.0, 0.0, 0.0, 0.7);336 CGContextDrawPath(ctx, kCGPathStroke);337 }338 CGContextSetRGBStrokeColor(ctx, 0.0, 1.0, 0.0, 0.7);339 CGContextStrokeRect(ctx, viewRect);340 #endif /* OVERLAY_CLIPRECTS */341 312 } 342 313 else if ( m_pMachineLogic->visualStateType() == UIVisualStateType_Scale
Note:
See TracChangeset
for help on using the changeset viewer.