summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-05-05 21:15:28 +0300
committerAndrei Karas <akaras@inbox.ru>2018-05-05 23:52:00 +0300
commit9874a6311c6b51247caed248cfcf2d2e72095923 (patch)
tree0a1810721ddf2cb6ed4e1740e8bcf3da1cd21171 /src/render
parent55d8a832786175c5ff9c9ab2eaa31296d342490a (diff)
downloadmv-9874a6311c6b51247caed248cfcf2d2e72095923.tar.gz
mv-9874a6311c6b51247caed248cfcf2d2e72095923.tar.bz2
mv-9874a6311c6b51247caed248cfcf2d2e72095923.tar.xz
mv-9874a6311c6b51247caed248cfcf2d2e72095923.zip
Remove support for CILK plus.
Diffstat (limited to 'src/render')
-rw-r--r--src/render/sdlgraphics.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/render/sdlgraphics.cpp b/src/render/sdlgraphics.cpp
index 4671a2042..8e77cbf1e 100644
--- a/src/render/sdlgraphics.cpp
+++ b/src/render/sdlgraphics.cpp
@@ -947,7 +947,7 @@ void SDLGraphics::fillRectangle(const Rect &restrict rectangle) restrict2
switch (bpp)
{
case 1:
- cilk_for (int y = y1; y < y2; y++)
+ for (int y = y1; y < y2; y++)
{
uint8_t *const p = static_cast<uint8_t *>(mWindow->pixels)
+ CAST_SIZE(y * mWindow->pitch);
@@ -959,7 +959,7 @@ void SDLGraphics::fillRectangle(const Rect &restrict rectangle) restrict2
}
break;
case 2:
- cilk_for (int y = y1; y < y2; y++)
+ for (int y = y1; y < y2; y++)
{
uint8_t *const p0 = static_cast<uint8_t *>(mWindow->pixels)
+ CAST_SIZE(y * mWindow->pitch);
@@ -980,7 +980,7 @@ void SDLGraphics::fillRectangle(const Rect &restrict rectangle) restrict2
const int cg = mColor.g * mColor.a;
const int cb = mColor.b * mColor.a;
- cilk_for (int y = y1; y < y2; y++)
+ for (int y = y1; y < y2; y++)
{
uint8_t *const p0 = static_cast<uint8_t *>(mWindow->pixels)
+ CAST_SIZE(y * mWindow->pitch);
@@ -1008,7 +1008,7 @@ void SDLGraphics::fillRectangle(const Rect &restrict rectangle) restrict2
const unsigned pr = (pixel & 0xff0000) * mColor.a;
const unsigned a1 = (255 - mColor.a);
- cilk_for (int y = y1; y < y2; y++)
+ for (int y = y1; y < y2; y++)
{
uint8_t *const p0 = static_cast<uint8_t *>(mWindow->pixels)
+ y * mWindow->pitch;
@@ -1071,7 +1071,7 @@ void SDLGraphics::fillRectangle(const Rect &restrict rectangle) restrict2
mOldAlpha = mColor.a;
}
- cilk_for (int y = y1; y < y2; y++)
+ for (int y = y1; y < y2; y++)
{
uint32_t *const p0 = reinterpret_cast<uint32_t*>(
static_cast<uint8_t*>(mWindow->pixels)