VirtualBox

Changeset 47068 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jul 10, 2013 11:14:56 AM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: Quartz2D frame-buffer: Cleanup some debug code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBufferQuartz2D.cpp

    r47067 r47068  
    3939# include <iprt/asm.h>
    4040#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
    41 
    42 //#define COMP_WITH_SHADOW
    43 //#define OVERLAY_CLIPRECTS
    4441
    4542/** @class UIFrameBufferQuartz2D
     
    254251        CGContextClearRect(ctx, viewRect);
    255252
    256 #ifdef OVERLAY_CLIPRECTS
    257         /* 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_SHADOW
    262         /* Enable shadows: */
    263         CGContextSetShadow(ctx, CGSizeMake (10, -10), 10);
    264         CGContextBeginTransparencyLayer(ctx, NULL);
    265 #endif /* COMP_WITH_SHADOW */
    266 
    267253        /* Determine current visible region: */
    268254        RegionRects *pRgnRcts = ASMAtomicXchgPtrT(&mRegion, NULL, RegionRects*);
     
    324310            CGImageRelease(subImage);
    325311        }
    326 
    327 #ifdef COMP_WITH_SHADOW
    328         CGContextEndTransparencyLayer(ctx);
    329 #endif /* COMP_WITH_SHADOW */
    330 #ifdef OVERLAY_CLIPRECTS
    331         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 */
    341312    }
    342313    else if (   m_pMachineLogic->visualStateType() == UIVisualStateType_Scale
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