diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-27 12:52:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-27 12:54:05 +0300 |
commit | d36700afb20f14faea02fd77a9ddbd619f3c0d54 (patch) | |
tree | 77e4cd331855ecfa67bb0c25bad5e73be31fc9ed | |
parent | 7055a5c38eee5b0fb390d50bbd82d34bee0387d7 (diff) | |
download | manaverse-d36700afb20f14faea02fd77a9ddbd619f3c0d54.tar.gz manaverse-d36700afb20f14faea02fd77a9ddbd619f3c0d54.tar.bz2 manaverse-d36700afb20f14faea02fd77a9ddbd619f3c0d54.tar.xz manaverse-d36700afb20f14faea02fd77a9ddbd619f3c0d54.zip |
Hide mouse cursor by default on Android.
Change old configs to hide mouse cursor on Android too.
-rw-r--r-- | src/client.cpp | 3 | ||||
-rw-r--r-- | src/defaults.cpp | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp index a30fc38c9..2cbddf87f 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -3128,6 +3128,9 @@ void Client::checkConfigVersion() if (version < 3) { config.setValue("audioFrequency", 44100); +#ifdef ANDROID + config.setValue("customcursor", false); +#endif } config.setValue("cfgver", 3); diff --git a/src/defaults.cpp b/src/defaults.cpp index 758bbdcaa..aa9697a05 100644 --- a/src/defaults.cpp +++ b/src/defaults.cpp @@ -152,7 +152,11 @@ DefaultsData* getConfigDefaults() AddDEF("ChatLogLength", 0); AddDEF("enableChatLog", true); AddDEF("whispertab", true); +#ifdef ANDROID + AddDEF("customcursor", false); +#else AddDEF("customcursor", true); +#endif AddDEF("showownname", true); AddDEF("showpickupparticle", true); AddDEF("showpickupchat", true); @@ -324,7 +328,7 @@ DefaultsData* getConfigDefaults() AddDEF("uselonglivesprites", false); AddDEF("uselonglivesounds", true); AddDEF("screenDensity", 0); - AddDEF("cfgver", 0); + AddDEF("cfgver", 3); AddDEF("enableDebugLog", false); AddDEF("doubleClick", true); AddDEF("useDiagonalSpeed", true); |