summaryrefslogtreecommitdiff
path: root/src/utils/sdlhelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-07 16:18:13 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-07 16:18:13 +0300
commit9fe21fcd8883b37bdc30224822e6e42afb35b8f0 (patch)
tree798117abd4dc7e610997d59d530a96ddc1509f53 /src/utils/sdlhelper.cpp
parent4429cb14e9e187edef27aba692a4266733f79c17 (diff)
downloadManaVerse-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.gz
ManaVerse-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.bz2
ManaVerse-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.xz
ManaVerse-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.zip
Replace most static_cast<Type> to shorter versions from defines.
Diffstat (limited to 'src/utils/sdlhelper.cpp')
-rw-r--r--src/utils/sdlhelper.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/sdlhelper.cpp b/src/utils/sdlhelper.cpp
index 73157f15c..bc5e75a56 100644
--- a/src/utils/sdlhelper.cpp
+++ b/src/utils/sdlhelper.cpp
@@ -44,8 +44,8 @@ bool SDL::getAllVideoModes(StringVect &modeList)
#ifdef ANDROID
const std::string modeString =
- toString(static_cast<int>(modes[0]->w)).append("x")
- .append(toString(static_cast<int>(modes[0]->h)));
+ toString(CAST_S32(modes[0]->w)).append("x")
+ .append(toString(CAST_S32(modes[0]->h)));
logger->log("support mode: " + modeString);
modeList.push_back(modeString);
return true;
@@ -66,8 +66,8 @@ bool SDL::getAllVideoModes(StringVect &modeList)
for (int i = 0; modes[i]; ++ i)
{
const std::string modeString =
- toString(static_cast<int>(modes[i]->w)).append("x")
- .append(toString(static_cast<int>(modes[i]->h)));
+ toString(CAST_S32(modes[i]->w)).append("x")
+ .append(toString(CAST_S32(modes[i]->h)));
logger->log("support mode: " + modeString);
modeList.push_back(modeString);
}