From 50692ac56d46a4767ef55a8272a2ccda32da7535 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 6 May 2013 20:04:45 +0300 Subject: set default onscreen buttons and joystick size depend on screen density. change config version to 2. --- src/client.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/client.cpp') 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); } -- cgit v1.2.3-70-g09d2