[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [plasma-mediacenter/PMC/0.9] shells/newshell: OpenGL enabled by default makes more sense. People on
From:       Shantanu Tushar <shaan7in () gmail ! com>
Date:       2012-05-13 8:13:11
Message-ID: 20120513081311.D3517A60A9 () git ! kde ! org
[Download RAW message or body]

Git commit 2efe59b7be35c5ef019064647435d6cf60959ffb by Shantanu Tushar.
Committed on 13/05/2012 at 10:11.
Pushed by shantanu into branch 'PMC/0.9'.

OpenGL enabled by default makes more sense. People on desktops etc had
bad video performance if they didn't pass --opengl.

CCMAIL: lamarque@kde.org

M  +1    -1    shells/newshell/main.cpp
M  +1    -1    shells/newshell/mainwindow.cpp

http://commits.kde.org/plasma-mediacenter/2efe59b7be35c5ef019064647435d6cf60959ffb

diff --git a/shells/newshell/main.cpp b/shells/newshell/main.cpp
index f4ccb88..97cbb82 100644
--- a/shells/newshell/main.cpp
+++ b/shells/newshell/main.cpp
@@ -50,7 +50,7 @@ int main(int argc, char *argv[])
     KCmdLineArgs::init(argc, argv, &aboutData);
     KCmdLineOptions options;
     options.add("fullscreen", ki18n("Starts Plasma Media Center in fullscreen mode (the default)"));
-    options.add("opengl", ki18n("Starts Plasma Media Center with OpenGL support"));
+    options.add("disable-opengl", ki18n("Starts Plasma Media Center with OpenGL support"));
     KCmdLineArgs::addCmdLineOptions(options);
 
     KApplication app;
diff --git a/shells/newshell/mainwindow.cpp b/shells/newshell/mainwindow.cpp
index 26f7b1f..46c900e 100644
--- a/shells/newshell/mainwindow.cpp
+++ b/shells/newshell/mainwindow.cpp
@@ -44,7 +44,7 @@ MainWindow::MainWindow(QWidget *parent) : KMainWindow(parent)
 
     QDeclarativeView *view = new QDeclarativeView(this);
 
-    if (args->isSet("opengl")) {
+    if (!args->isSet("disable-opengl")) {
         QGLWidget *glWidget = new QGLWidget;
         glWidget->setAutoFillBackground(false);
         view->setViewport(glWidget);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic