VirtualBox

Changeset 2316 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 23, 2007 11:16:20 AM (18 years ago)
Author:
vboxsync
Message:

use the background pixmap on the mac (fixes the white background).

File:
1 edited

Legend:

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

    r382 r2316  
    7979    if (testWFlags (WNoAutoErase)) {
    8080        icon = new QPixmap (pm.size());
    81         icon->fill (paletteBackgroundColor());
     81#ifdef Q_WS_MAC /* the background color isn't the pattern used for the console window frame */
     82        const QPixmap *back = backgroundPixmap();
     83        if (back) /* Is ClearROP right? I've no clue about raster operations... */
     84            bitBlt (icon, 0, 0, back, 0, 0, pm.width(), pm.height(), ClearROP, false);
     85        else
     86#endif
     87            icon->fill (paletteBackgroundColor());
    8288        bitBlt (icon, 0, 0, &pm, 0, 0, pm.width(), pm.height(), CopyROP, false);
    8389    } else {
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