summaryrefslogtreecommitdiff
path: root/src/gui/setup_video.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-11 18:39:34 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-11 18:39:34 +0300
commit350b3a4029d2850aa3057f25566abf8a589f487f (patch)
tree87f19e178dd827b60ef84db919d564041029390d /src/gui/setup_video.cpp
parent2274758726d1138a2b65535244e84225c3de5304 (diff)
downloadmanaplus-350b3a4029d2850aa3057f25566abf8a589f487f.tar.gz
manaplus-350b3a4029d2850aa3057f25566abf8a589f487f.tar.bz2
manaplus-350b3a4029d2850aa3057f25566abf8a589f487f.tar.xz
manaplus-350b3a4029d2850aa3057f25566abf8a589f487f.zip
Enable best mode autodetection for linux.
Diffstat (limited to 'src/gui/setup_video.cpp')
-rw-r--r--src/gui/setup_video.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp
index 69f769b67..f6b83807a 100644
--- a/src/gui/setup_video.cpp
+++ b/src/gui/setup_video.cpp
@@ -26,9 +26,7 @@
#include "game.h"
#include "graphics.h"
-#ifdef WIN32
#include "graphicsmanager.h"
-#endif
#include "localplayer.h"
#include "logger.h"
@@ -240,11 +238,7 @@ Setup_Video::Setup_Video():
mFpsLabel(new Label),
mAltFpsSlider(new Slider(2, 160)),
mAltFpsLabel(new Label(_("Alt FPS limit: "))),
-#ifdef WIN32
mDetectButton(new Button(_("Detect best mode"), "detect", this)),
-#else
- mDetectButton(nullptr),
-#endif
mDialog(nullptr)
{
setName(_("Video"));
@@ -319,9 +313,7 @@ Setup_Video::Setup_Video():
place(0, 7, mAltFpsSlider);
place(1, 7, mAltFpsLabel).setPadding(3);
-#ifdef WIN32
place(0, 8, mDetectButton);
-#endif
int width = 600;
@@ -556,14 +548,12 @@ void Setup_Video::action(const gcn::ActionEvent &event)
{
config.setValue("noframe", mNoFrameCheckBox->isSelected());
}
-#ifdef WIN32
else if (id == "detect")
{
int val = graphicsManager.startDetection();
if (val >= 0 && val <= 2)
mOpenGLDropDown->setSelected(val);
}
-#endif
}
void Setup_Video::externalUpdated()