summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-06 20:04:45 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-06 20:05:33 +0300
commit50692ac56d46a4767ef55a8272a2ccda32da7535 (patch)
treec0d6f9c94ee7d77d9d46f5007cb4dd1f30794580 /src/client.cpp
parent4c5623a691280e68401c4072aaa511065ca89648 (diff)
downloadmv-50692ac56d46a4767ef55a8272a2ccda32da7535.tar.gz
mv-50692ac56d46a4767ef55a8272a2ccda32da7535.tar.bz2
mv-50692ac56d46a4767ef55a8272a2ccda32da7535.tar.xz
mv-50692ac56d46a4767ef55a8272a2ccda32da7535.zip
set default onscreen buttons and joystick size depend on screen density.
change config version to 2.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 1199c1213..f01d5b12c 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -2941,6 +2941,13 @@ void Client::checkConfigVersion()
if (config.getIntValue("npcfontSize") == 13)
config.deleteKey("npcfontSize");
}
+ if (version < 2)
+ {
+ if (config.getIntValue("screenButtonsSize") == 1)
+ config.deleteKey("screenButtonsSize");
+ if (config.getIntValue("screenJoystickSize") == 1)
+ config.deleteKey("screenJoystickSize");
+ }
- config.setValue("cfgver", 1);
+ config.setValue("cfgver", 2);
}