VirtualBox

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


Ignore:
Timestamp:
Feb 4, 2008 6:47:36 PM (17 years ago)
Author:
vboxsync
Message:

/*= NULL*/ - document defaults

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/darwin/VBoxUtils-darwin.cpp

    r6721 r6798  
    110110    transImage.fill (qRgba (0, 0, 0, 0));
    111111    transImage.setAlphaBuffer (true);
    112     QPixmap back (transImage); 
     112    QPixmap back (transImage);
    113113
    114114    /* load the badge */
     
    136136 * @param   aStateImage   an optional state overlay image to add at the center of the icon
    137137 */
    138 void DarwinUpdateDockPreview (CGImageRef aVMImage, CGImageRef aOverlayImage, CGImageRef aStateImage)
     138void DarwinUpdateDockPreview (CGImageRef aVMImage, CGImageRef aOverlayImage, CGImageRef aStateImage /*= NULL*/)
    139139{
    140140    Assert (aVMImage);
     
    187187    if (aStateImage)
    188188    {
    189         CGRect stateRect = CGRectMake ((targetWidth - CGImageGetWidth (aStateImage)) / 2.0, 
    190                                        (targetHeight - CGImageGetHeight (aStateImage)) / 2.0, 
    191                                        CGImageGetWidth (aStateImage), 
     189        CGRect stateRect = CGRectMake ((targetWidth - CGImageGetWidth (aStateImage)) / 2.0,
     190                                       (targetHeight - CGImageGetHeight (aStateImage)) / 2.0,
     191                                       CGImageGetWidth (aStateImage),
    192192                                       CGImageGetHeight (aStateImage));
    193193        CGContextDrawImage (context, stateRect, aStateImage);
     
    196196    if (aOverlayImage)
    197197    {
    198         CGRect overlayRect = CGRectMake (targetWidth - CGImageGetWidth (aOverlayImage), 
    199                                          0, 
    200                                          CGImageGetWidth (aOverlayImage), 
     198        CGRect overlayRect = CGRectMake (targetWidth - CGImageGetWidth (aOverlayImage),
     199                                         0,
     200                                         CGImageGetWidth (aOverlayImage),
    201201                                         CGImageGetHeight (aOverlayImage));
    202202        CGContextDrawImage (context, overlayRect, aOverlayImage);
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