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

List:       kde-commits
Subject:    KDE/kdegames
From:       Stefan Majewsky <majewsky () gmx ! net>
Date:       2011-10-07 18:44:38
Message-ID: 20111007184438.60D1BAC886 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1257773 by majewsky:

On X11, choose raster graphicssystem automatically in libkdegames apps.

The QApplication::setGraphicsSystem calls in Kapman and Palapeli are
removed, as libkdegames does now care about this.

DIGEST: This quite improves the rendering performance on Qt <= 4.7.

BUG: 277590
FIXED-IN: 4.7.3

 M  +0 -5      kapman/main.cpp  
 M  +3 -0      libkdegames/CMakeLists.txt  
 A             libkdegames/chooserastergraphicssystem.cpp   [License: LGPL (v2)]
 M  +0 -3      palapeli/src/main.cpp  


--- trunk/KDE/kdegames/kapman/main.cpp #1257772:1257773
@@ -33,11 +33,6 @@
 	about.addAuthor(ki18n("Romain Castan"), ki18n("Developer"), "romaincastan@gmail.com", 0);
 	about.addAuthor(ki18n("Thomas Gallinari"), ki18n("Developer"), "tg8187@yahoo.fr", 0);
 
-	// Raster graphicssystem improves performance drastically on X11
-#ifdef Q_WS_X11
-	QApplication::setGraphicsSystem("raster");
-#endif
-
 	// Command line arguments
 	KCmdLineArgs::init(argc, argv, &about);
 	// Create the application
--- trunk/KDE/kdegames/libkdegames/CMakeLists.txt #1257772:1257773
@@ -79,6 +79,9 @@
     kgamedifficulty.cpp
     cardcache.cpp
 )
+if(Q_WS_X11)
+	set(kdegames_LIB_SRCS ${kdegames_LIB_SRCS} chooserastergraphicssystem.cpp)
+endif(Q_WS_X11)
 
 kde4_add_ui_files(kdegames_LIB_SRCS
     kgamethemeselector.ui
--- trunk/KDE/kdegames/palapeli/src/main.cpp #1257772:1257773
@@ -38,9 +38,6 @@
 	options.add("", ki18n("If the -i/--import option is specified, the main window will not be shown after \
importing the given puzzle."));  KCmdLineArgs::addCmdLineOptions(options);
 
-#ifdef Q_WS_X11
-	QApplication::setGraphicsSystem("raster");
-#endif
 	KApplication app;
 
 	KCmdLineArgs* args = KCmdLineArgs::parsedArgs();


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

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