QTfrontend/pages.cpp
changeset 555 0376fdcc6322
parent 529 812682c1ab62
child 579 94db15de0392
--- a/QTfrontend/pages.cpp	Thu Jul 12 14:43:34 2007 +0000
+++ b/QTfrontend/pages.cpp	Thu Jul 12 14:44:41 2007 +0000
@@ -41,6 +41,7 @@
 #include "fpsedit.h"
 #include "netudpwidget.h"
 #include "chatwidget.h"
+#include "SDLs.h"
 
 PageMain::PageMain(QWidget* parent) : QWidget(parent)
 {
@@ -372,10 +373,8 @@
 	GBAreslayout->addWidget(resolution);
 
 	CBResolution = new QComboBox(AGGroupBox);
-	CBResolution->addItem("640x480");
-	CBResolution->addItem("800x600");
-	CBResolution->addItem("1024x768");
-	CBResolution->addItem("1280x1024");
+	SDLInteraction sdli;
+	CBResolution->addItems(sdli.getResolutions());
 	GBAreslayout->addWidget(CBResolution);
 	GBAlayout->addLayout(GBAreslayout);