QTfrontend/gameuiconfig.cpp
changeset 14677 93429d8f6b3f
parent 14670 56831f466d1d
child 14740 7b2bd37d7503
--- a/QTfrontend/gameuiconfig.cpp	Tue Feb 05 01:40:16 2019 +0300
+++ b/QTfrontend/gameuiconfig.cpp	Tue Feb 05 02:13:04 2019 +0100
@@ -105,6 +105,7 @@
     Form->ui.pageOptions->CBFrontendFullscreen->setChecked(ffscr);
 
     Form->ui.pageOptions->SLQuality->setValue(value("video/quality", 5).toUInt());
+    Form->ui.pageOptions->SLZoom->setValue(value("video/zoom", 100).toUInt());
     Form->ui.pageOptions->CBStereoMode->setCurrentIndex(value("video/stereo", 0).toUInt());
     Form->ui.pageOptions->CBFrontendEffects->setChecked(value("frontend/effects", true).toBool());
     Form->ui.pageOptions->CBSound->setChecked(value("audio/sound", true).toBool());
@@ -245,6 +246,7 @@
     setValue("video/fullscreen", vid_Fullscreen());
 
     setValue("video/quality", Form->ui.pageOptions->SLQuality->value());
+    setValue("video/zoom", Form->ui.pageOptions->SLZoom->value());
     setValue("video/stereo", stereoMode());
 
     setValue("frontend/effects", isFrontendEffects());
@@ -441,6 +443,11 @@
     return Form->ui.pageOptions->CBFrontendFullscreen->isChecked();
 }
 
+quint16 GameUIConfig::zoom()
+{
+    return Form->ui.pageOptions->SLZoom->value();
+}
+
 bool GameUIConfig::isHolidaySillinessEnabled() const
 {
     return value("misc/holidaySilliness", true).toBool();