From 73cf17e2dd4cabbbfc4308ec65da286f85458960 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 12 Dec 2015 16:47:09 +0300 Subject: Hide "detect best mode" in nacl. --- src/gui/widgets/tabs/setup_video.cpp | 4 ++-- src/gui/widgets/tabs/setup_video.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2