QTfrontend/main.cpp
changeset 1150 ae86e36dad2e
parent 1149 c2d3b4f71836
child 1152 c72b939c00df
--- a/QTfrontend/main.cpp	Mon Aug 04 19:28:01 2008 +0000
+++ b/QTfrontend/main.cpp	Mon Aug 04 20:29:13 2008 +0000
@@ -53,30 +53,21 @@
 
 	Q_INIT_RESOURCE(hedgewars);
 
-	QString imgAddr=":/res/Background.png";
-	QImage bgrndIm(imgAddr);
-	QRect deskSz=qApp->desktop()->screenGeometry();
-	bgrndIm=bgrndIm.scaled(deskSz.width()-deskSz.left(), deskSz.height()-deskSz.top(), 
-			       Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
-	if (bgrndIm.save(QDir::tempPath()+"/hedgewarsScaledBgrnd.png")) {
-	  imgAddr=QDir::tempPath()+"/hedgewarsScaledBgrnd.png";
-	}
-	
 	qApp->setStyleSheet
 	  (QString(
 		   ".HWForm{"
-		   "background-image: url(\"%1\");"
+		   "background-image: url(\":/res/Background.png\");"
 		   "background-position: bottom center;"
 		   //" background-origin: content;"
-		   "background-repeat: no-repeat;"
-		   "background-color: #3f095f;"
+		   "background-repeat: repeat-x;"
+		   "background-color: #870c8f;"
 		   "}"
 		   "PageMain > QPushButton{"
 		   "border: solid transparent;"
 		   "}"
-		   ).arg(imgAddr)
+		   )
 	   );
-	
+
 	bindir->cd("bin"); // workaround over NSIS installer
 
 	cfgdir->setPath(cfgdir->homePath());