diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-11-04 19:54:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-11-04 19:54:49 +0300 |
commit | fc8152fe3116cbd77967bd4f8686ddda5c0d6fcb (patch) | |
tree | 4fc25bf08b4765b785f7f6914348e9d132d0ed3e /src/gui | |
parent | 67bfe1259c7a819ef245289ecda935282e31e2f2 (diff) | |
download | plus-fc8152fe3116cbd77967bd4f8686ddda5c0d6fcb.tar.gz plus-fc8152fe3116cbd77967bd4f8686ddda5c0d6fcb.tar.bz2 plus-fc8152fe3116cbd77967bd4f8686ddda5c0d6fcb.tar.xz plus-fc8152fe3116cbd77967bd4f8686ddda5c0d6fcb.zip |
Hide "detect best mode" button under Android.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/setup_video.cpp | 6 | ||||
-rw-r--r-- | src/gui/setup_video.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp index 747478dbb..78cdd4ce2 100644 --- a/src/gui/setup_video.cpp +++ b/src/gui/setup_video.cpp @@ -222,7 +222,9 @@ Setup_Video::Setup_Video(const Widget2 *const widget) : mFpsLabel(new Label(this)), mAltFpsSlider(new Slider(2, 160)), mAltFpsLabel(new Label(this, _("Alt FPS limit: "))), +#ifndef ANDROID mDetectButton(new Button(this, _("Detect best mode"), "detect", this)), +#endif mDialog(nullptr) { setName(_("Video")); @@ -302,7 +304,9 @@ Setup_Video::Setup_Video(const Widget2 *const widget) : place(0, 7, mAltFpsSlider); place(1, 7, mAltFpsLabel).setPadding(3); +#ifndef ANDROID place(0, 8, mDetectButton); +#endif int width = 600; @@ -545,7 +549,7 @@ void Setup_Video::action(const gcn::ActionEvent &event) { config.setValue("noframe", mNoFrameCheckBox->isSelected()); } -#ifdef USE_OPENGL +#if defined(USE_OPENGL) && !defined(ANDROID) else if (id == "detect") { TestMain *test = graphicsManager.startDetection(); diff --git a/src/gui/setup_video.h b/src/gui/setup_video.h index 4b34adb90..59c293945 100644 --- a/src/gui/setup_video.h +++ b/src/gui/setup_video.h @@ -87,7 +87,9 @@ class Setup_Video final : public SetupTab, public gcn::KeyListener Slider *mAltFpsSlider; Label *mAltFpsLabel; +#ifndef ANDROID Button *mDetectButton; +#endif TextDialog *mDialog; }; |