summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-12 16:47:09 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-12 16:47:09 +0300
commit73cf17e2dd4cabbbfc4308ec65da286f85458960 (patch)
tree7b6546a685611ce71dcc530c3d1b93419a6c21f5 /src
parentf07d919be74197a45f291d457ad44b872ce541de (diff)
downloadmanaverse-73cf17e2dd4cabbbfc4308ec65da286f85458960.tar.gz
manaverse-73cf17e2dd4cabbbfc4308ec65da286f85458960.tar.bz2
manaverse-73cf17e2dd4cabbbfc4308ec65da286f85458960.tar.xz
manaverse-73cf17e2dd4cabbbfc4308ec65da286f85458960.zip
Hide "detect best mode" in nacl.
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/tabs/setup_video.cpp4
-rw-r--r--src/gui/widgets/tabs/setup_video.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/tabs/setup_video.cpp b/src/gui/widgets/tabs/setup_video.cpp
index f1171ca28..77b56289e 100644
--- a/src/gui/widgets/tabs/setup_video.cpp
+++ b/src/gui/widgets/tabs/setup_video.cpp
@@ -79,7 +79,7 @@ Setup_Video::Setup_Video(const Widget2 *const widget) :
mAltFpsSlider(new Slider(this, 2.0, 160.0, 1.0)),
// TRANSLATORS: video settings label
mAltFpsLabel(new Label(this, _("Alt FPS limit: "))),
-#if !defined(ANDROID) && !defined(__APPLE__)
+#if !defined(ANDROID) && !defined(__APPLE__) && !defined(__native_client__)
// TRANSLATORS: video settings button
mDetectButton(new Button(this, _("Detect best mode"), "detect", this)),
#endif
@@ -172,7 +172,7 @@ Setup_Video::Setup_Video(const Widget2 *const widget) :
place(0, 7, mAltFpsSlider);
place(1, 7, mAltFpsLabel).setPadding(3);
-#if !defined(ANDROID) && !defined(__APPLE__)
+#if !defined(ANDROID) && !defined(__APPLE__) && !defined(__native_client__)
place(0, 8, mDetectButton);
#else
mNoFrameCheckBox->setEnabled(false);
diff --git a/src/gui/widgets/tabs/setup_video.h b/src/gui/widgets/tabs/setup_video.h
index 4d455a0b9..f497bf786 100644
--- a/src/gui/widgets/tabs/setup_video.h
+++ b/src/gui/widgets/tabs/setup_video.h
@@ -68,7 +68,7 @@ class Setup_Video final : public SetupTab,
Label *mFpsLabel;
Slider *mAltFpsSlider;
Label *mAltFpsLabel;
-#if !defined(ANDROID) && !defined(__APPLE__)
+#if !defined(ANDROID) && !defined(__APPLE__) || !defined(__native_client__)
Button *mDetectButton;
#endif
TextDialog *mDialog;