summaryrefslogtreecommitdiff
path: root/src/resources/sdlimagehelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-26 00:16:12 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-26 16:44:05 +0300
commit6653e97cfe1b65485c69bda1fa23c837617dc67b (patch)
tree93f61133607897d40091fea506820365a264c524 /src/resources/sdlimagehelper.cpp
parentd526c8eaffc99e8f5618185f51a63fcb5b3ad645 (diff)
downloadManaVerse-6653e97cfe1b65485c69bda1fa23c837617dc67b.tar.gz
ManaVerse-6653e97cfe1b65485c69bda1fa23c837617dc67b.tar.bz2
ManaVerse-6653e97cfe1b65485c69bda1fa23c837617dc67b.tar.xz
ManaVerse-6653e97cfe1b65485c69bda1fa23c837617dc67b.zip
Use cilkplus in sdlimagehelper.
Diffstat (limited to 'src/resources/sdlimagehelper.cpp')
-rw-r--r--src/resources/sdlimagehelper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/sdlimagehelper.cpp b/src/resources/sdlimagehelper.cpp
index efa0daaf7..38939269f 100644
--- a/src/resources/sdlimagehelper.cpp
+++ b/src/resources/sdlimagehelper.cpp
@@ -217,7 +217,7 @@ Image *SDLImageHelper::_SDLload(SDL_Surface *tmpImage)
const uint8_t ashift = fmt->Ashift;
const uint8_t aloss = fmt->Aloss;
const uint32_t *pixels = static_cast<uint32_t*>(tmpImage->pixels);
- for (size_t i = 0; i < sz; ++ i)
+ cilk_for (size_t i = 0; i < sz; ++ i)
{
const unsigned v = (pixels[i] & amask) >> ashift;
const uint8_t a = static_cast<const uint8_t>((v << aloss)