QTfrontend/game.cpp
changeset 555 0376fdcc6322
parent 541 bc7be7f6d3e8
child 587 74db4115064a
--- a/QTfrontend/game.cpp	Thu Jul 12 14:43:34 2007 +0000
+++ b/QTfrontend/game.cpp	Thu Jul 12 14:44:41 2007 +0000
@@ -211,9 +211,10 @@
 QStringList HWGame::setArguments()
 {
 	QStringList arguments;
+	QRect resolution = config->vid_Resolution();
 	arguments << cfgdir->absolutePath();
-	arguments << resolutions[0][config->vid_Resolution()];
-	arguments << resolutions[1][config->vid_Resolution()];
+	arguments << QString::number(resolution.width());
+	arguments << QString::number(resolution.height());
 	arguments << "16"; // bpp
 	arguments << QString("%1").arg(ipc_port);
 	arguments << (config->vid_Fullscreen() ? "1" : "0");