VirtualBox

Changeset 6720 in vbox


Ignore:
Timestamp:
Feb 1, 2008 2:21:48 PM (17 years ago)
Author:
vboxsync
Message:

Mac OS X: Removed that transparent 128x128 png file and create one from scratch now.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/VBoxUI.pro

    r6715 r6720  
    265265        images/about.png \
    266266        images/about_tile.png \
    267         images/dock_0.png \
    268267        images/dock_1.png \
    269         images/dock_128x128_transparent.png \
    270268        images/VirtualBox_48px.png
    271269
  • trunk/src/VBox/Frontends/VirtualBox/src/darwin/VBoxUtils-darwin.cpp

    r6715 r6720  
    105105CGImageRef DarwinCreateDockBadge (const char *aSource)
    106106{
    107     /* instead of figuring out how to create a transparent 128x128 pixmap I've
    108        just created one that I can load. The Qt gurus can fix this if they like :-) */
    109     QPixmap back (QPixmap::fromMimeSource ("dock_128x128_transparent.png"));
    110     Assert (!back.isNull());
    111     Assert (back.width() == 128 && back.height() == 128);
     107    /* Create a transparent image in size 128x128.
     108     * This is unnecessary complicated in qt3. */
     109    QImage transImage (128, 128, 32);
     110    transImage.fill (qRgba (0, 0, 0, 0));
     111    transImage.setAlphaBuffer (true);
     112    QPixmap back (transImage);
    112113
    113114    /* load the badge */
     
    121122             &badge, 0, 0,
    122123             badge.width(), badge.height());
    123 //    copyBlt (&back, back.width() - badge.width(), back.height() - badge.height(),
    124 //             &badge, 0, 0,
    125 //             badge.width(), badge.height());
    126     Assert (!back.isNull());
    127     Assert (back.width() == 128 && back.height() == 128);
    128124
    129125    /* Convert it to a CGImage. */
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