From d36700afb20f14faea02fd77a9ddbd619f3c0d54 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 27 Sep 2013 12:52:49 +0300 Subject: Hide mouse cursor by default on Android. Change old configs to hide mouse cursor on Android too. --- src/client.cpp | 3 +++ src/defaults.cpp | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2