Explorar o código

Hide resolution selector on mobile devices

Ivan Savenko %!s(int64=2) %!d(string=hai) anos
pai
achega
77beca50e2
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      client/windows/settings/GeneralOptionsTab.cpp

+ 10 - 0
client/windows/settings/GeneralOptionsTab.cpp

@@ -169,6 +169,16 @@ GeneralOptionsTab::GeneralOptionsTab()
 
 	std::shared_ptr<CLabel> soundVolumeLabel = widget<CLabel>("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<CButton> resolutionButton = widget<CButton>("resolutionButton");
+
+	resolutionButton->disable();
+	resolutionLabel->disable();
+	fullscreenCheckbox->block(true);
+#endif
 }
 
 void GeneralOptionsTab::selectGameResolution()