diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-07-14 01:31:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-07-14 01:31:22 +0300 |
commit | 311c175f3184103950c72bc5c775174597430b83 (patch) | |
tree | ad022dc44a1c4177b3d53bf0d7eaa5a1736c8cf1 /src/graphicsmanager.cpp | |
parent | 16bcb81b0509725e4546bcb3c390ca3c1bb7e7b1 (diff) | |
download | plus-311c175f3184103950c72bc5c775174597430b83.tar.gz plus-311c175f3184103950c72bc5c775174597430b83.tar.bz2 plus-311c175f3184103950c72bc5c775174597430b83.tar.xz plus-311c175f3184103950c72bc5c775174597430b83.zip |
Replace std::vector into macro STD_VECTOR.
In most case it equal to std::vector except debug modes.
Now it can be also mse::mstd::vector, but sadly this class not support
all required features.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r-- | src/graphicsmanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index 0cf99019e..008cc2d9f 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -462,7 +462,7 @@ void GraphicsManager::setVideoMode() SDL::getAllVideoModes(videoModes); if (videoModes.empty()) logger->error("no video modes detected"); - std::vector<int> res; + STD_VECTOR<int> res; splitToIntVector(res, videoModes[0], 'x'); if (res.size() != 2) logger->error("no video modes detected"); @@ -589,7 +589,7 @@ void GraphicsManager::initGraphics() } #if !defined(ANDROID) && !defined(__APPLE__) const std::string str = config.getStringValue("textureSize"); - std::vector<int> sizes; + STD_VECTOR<int> sizes; splitToIntVector(sizes, str, ','); const size_t pos = CAST_SIZE(openGLMode); if (sizes.size() <= pos) |