VirtualBox

Changeset 22157 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 11, 2009 11:19:58 AM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: Few little GUI coding-style fixes for 50914 & 50915.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h

    r22144 r22157  
    753753
    754754#ifdef VBOX_WITH_VIDEOHWACCEL
    755     static bool isAcceleration2DVideoAvailable() {/*TODO: */ return true; }
     755    static bool isAcceleration2DVideoAvailable() { /* TODO: */ return true; }
    756756    VBoxDefs::RenderMode vmAcceleration2DVideoRenderMode() { return VBoxDefs::QGLMode; }
    757757#endif
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r22144 r22157  
    810810
    811811#ifdef VBOX_WITH_VIDEOHWACCEL
    812     /* need to force the QGL framebuffer in case 2D Video Acceleration is enabled && supported */
    813     if(cmachine.GetAccelerate2DVideoEnabled() && VBoxGlobal::isAcceleration2DVideoAvailable())
    814     {
    815         mode = vboxGlobal().vmAcceleration2DVideoRenderMode();
    816     }
     812    /* Need to force the QGL framebuffer in case 2D Video Acceleration is supported & enabled */
     813    if (VBoxGlobal::isAcceleration2DVideoAvailable() && cmachine.GetAccelerate2DVideoEnabled())
     814        mode = vboxGlobal().vmAcceleration2DVideoRenderMode();
    817815#endif
    818816
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r22144 r22157  
    15611561
    15621562        item += QString (sSectionItemTpl2)
    1563                        .arg (tr ("2D Video Acceleration", "details report"), acc2dVideo);
    1564         rows++;
     1563                .arg (tr ("2D Video Acceleration", "details report"), acc2dVideo);
     1564        ++ rows;
    15651565#endif
    15661566
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsDisplay.cpp

    r22143 r22157  
    9696
    9797#ifndef VBOX_WITH_VIDEOHWACCEL
    98     mCb2DVideo->setEnabled (false);
     98    mCb2DVideo->setVisible (false);
    9999#endif
    100100
     
    117117
    118118#ifdef VBOX_WITH_VIDEOHWACCEL
    119     bool is2DVideoAccelerationSupported = VBoxGlobal::isAcceleration2DVideoAvailable();
    120     mCb2DVideo->setEnabled (is2DVideoAccelerationSupported);
     119    mCb2DVideo->setEnabled (VBoxGlobal::isAcceleration2DVideoAvailable());
    121120    mCb2DVideo->setChecked (mMachine.GetAccelerate2DVideoEnabled());
    122 #else
    123     mCb2DVideo->setEnabled (false);
    124121#endif
    125122
     
    170167    connect (mCb3D, SIGNAL (stateChanged (int)),
    171168             mValidator, SLOT (revalidate()));
    172 #ifdef VBOX_WITH_VIDEOHWACCEL
    173     connect (mCb2DVideo, SIGNAL (stateChanged (int)),
    174              mValidator, SLOT (revalidate()));
    175 #endif
    176169    connect (mCbVRDP, SIGNAL (toggled (bool)),
    177170             mValidator, SLOT (revalidate()));
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