VirtualBox

Changeset 21479 in vbox for trunk/src


Ignore:
Timestamp:
Jul 10, 2009 1:22:57 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: remove all ARGB hacks again

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
4 edited

Legend:

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

    r21474 r21479  
    686686    {
    687687        /* No need for background drawing */
    688 //        setAttribute (Qt::WA_OpaquePaintEvent);
     688        setAttribute (Qt::WA_OpaquePaintEvent);
    689689    }
    690690    virtual QPaintEngine * paintEngine() const
    691691    {
    692 //        if (testAttribute (Qt::WA_PaintOnScreen))
    693 //            return NULL;
    694 //        else
     692        if (testAttribute (Qt::WA_PaintOnScreen))
     693            return NULL;
     694        else
    695695            return QWidget::paintEngine();
    696696    }
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r21478 r21479  
    807807    AssertWrapperOk (csession);
    808808
    809 #ifdef Q_WS_X11
    810     setenv ("XLIB_SKIP_ARGB_VISUALS", "1", 1);
    811 #endif
    812809    console = new VBoxConsoleView (this, cconsole, mode, centralWidget());
    813 #ifdef Q_WS_X11
    814     unsetenv ("XLIB_SKIP_ARGB_VISUALS");
    815 #endif
    816810    static_cast <QGridLayout*> (centralWidget()->layout())->addWidget (console, 1, 1, Qt::AlignVCenter | Qt::AlignHCenter);
    817811
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxFrameBuffer.cpp

    r21474 r21479  
    297297    VBoxFrameBuffer (aView)
    298298{
    299     /* There are some buggy/strange driver/compiz combinations which lead to
    300      * transparent backgrounds on ARGB visuals. Try to fix it by painting
    301      * always a black background. */
    302     aView->viewport()->setAttribute (Qt::WA_OpaquePaintEvent, false);
    303     aView->viewport()->setAttribute (Qt::WidgetAttribute(120), false);
    304     aView->viewport()->setAttribute (Qt::WA_NoSystemBackground, false);
    305     QPalette pal = aView->viewport()->palette();
    306     pal.setColor (QPalette::Window, Qt::black);
    307     aView->viewport()->setPalette (pal);
    308299    /* Initialize the framebuffer the first time */
    309300    resizeEvent (new VBoxResizeEvent (FramebufferPixelFormat_Opaque,
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r21477 r21479  
    722722         *  from the below constructor or from constructors/methods it calls.
    723723         */
    724 #ifdef Q_WS_X11
    725         setenv ("XLIB_SKIP_ARGB_VISUALS", "1", 1);
    726 #endif
    727724        VBoxConsoleWnd *w = new VBoxConsoleWnd (&mConsoleWnd, 0);
    728725        Assert (w == mConsoleWnd);
    729726        NOREF(w);
    730 #ifdef Q_WS_X11
    731         unsetenv ("XLIB_SKIP_ARGB_VISUALS");
    732 #endif
    733727    }
    734728
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