summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <[email protected]>2015-07-18 23:46:54 +0200
committerAlbert Astals Cid <[email protected]>2015-07-18 23:46:54 +0200
commit9d084a7fbd52fa9ddf78bca29306ba1a65cad7da (patch)
treed67e8858ea0d6dba97759a394ce1c00fda0549e6
parent80ac8f72f153bd64ef6f0b96a64983fa2a0eccff (diff)
Remove useless call to QApplication::setGraphicsSystemv15.08.2v15.08.1v15.08.0v15.07.90v15.07.80
-rw-r--r--CMakeLists.txt3
-rw-r--r--chooserastergraphicssystem.cpp47
2 files changed, 0 insertions, 50 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2664fd4..3c211f3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -111,9 +111,6 @@ set(kdegames_LIB_SRCS
kgthemeselector.cpp
kstandardgameaction.cpp
)
-if(Q_WS_X11)
- set(kdegames_LIB_SRCS ${kdegames_LIB_SRCS} chooserastergraphicssystem.cpp)
-endif(Q_WS_X11)
add_library(KF5KDEGames SHARED ${kdegames_LIB_SRCS})
diff --git a/chooserastergraphicssystem.cpp b/chooserastergraphicssystem.cpp
deleted file mode 100644
index f1fb98f..0000000
--- a/chooserastergraphicssystem.cpp
+++ /dev/null
@@ -1,47 +0,0 @@
-/***************************************************************************
- * Copyright 2011 Stefan Majewsky <[email protected]> *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU Library General Public License *
- * version 2 as published by the Free Software Foundation *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU Library General Public License for more details. *
- * *
- * You should have received a copy of the GNU Library General Public *
- * License along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
- ***************************************************************************/
-
-#include <QApplication>
-
-/*
- * This file is only compiled on Q_WS_X11 (see CMakeLists.txt). It chooses the
- * raster graphicssystem in anything linking against libkdegames.
- *
- * The raster graphicssystem has a much better performance in graphics-intense
- * apps like games, compared to the X11 graphicssystem which is still the
- * default in Qt 4.7. (Rumor has it that raster will become the default as of Qt
- * 4.8.)
- *
- * This header ensures that raster is always used instead of X11 to enable a
- * more fluent graphics experience. The relevant API call
- * (QApplication::setGraphicsSystem) needs to be issued *before* the
- * application object (QApplication or KApplication) is constructed, so we do it
- * in a constructor of an anonymous global object.
- *
- * Constructors of global objects are called before main() by the C++ runtime.
- */
-
-namespace { //don't export this struct and instance, it's internal affairs
- struct ConfigureDefaultGraphicsSystem
- {
- ConfigureDefaultGraphicsSystem() {
- QApplication::setGraphicsSystem(QLatin1String("raster"));
- }
- };
- ConfigureDefaultGraphicsSystem staticObject;
-}