From 77beca50e20d04d1b1020d738a0702eb1ec71e46 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Fri, 5 May 2023 00:06:20 +0300 Subject: [PATCH] Hide resolution selector on mobile devices --- client/windows/settings/GeneralOptionsTab.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/client/windows/settings/GeneralOptionsTab.cpp b/client/windows/settings/GeneralOptionsTab.cpp index 8384a70d0..e685caa32 100644 --- a/client/windows/settings/GeneralOptionsTab.cpp +++ b/client/windows/settings/GeneralOptionsTab.cpp @@ -169,6 +169,16 @@ GeneralOptionsTab::GeneralOptionsTab() std::shared_ptr soundVolumeLabel = widget("soundValueLabel"); soundVolumeLabel->setText(std::to_string(CCS->soundh->getVolume()) + "%"); + +#ifdef VCMI_MOBILE + // On mobile platforms, VCMI always uses OS screen resolutions + // Players can control UI size via "Interface Scaling" option instead + std::shared_ptr resolutionButton = widget("resolutionButton"); + + resolutionButton->disable(); + resolutionLabel->disable(); + fullscreenCheckbox->block(true); +#endif } void GeneralOptionsTab::selectGameResolution()