Skip to content
Browse files

[pictures] fix flipping horizontally/vertically and rotate by 180 swa…

…pping the width and height
  • Loading branch information...
1 parent 3b7d4b2 commit 37fc72c4f256d414f2ac85a3a9848094b45853de Jonathan Marshall committed Jul 1, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 xbmc/pictures/Picture.cpp
View
6 xbmc/pictures/Picture.cpp
@@ -373,7 +373,7 @@ uint32_t *CPicture::FlipHorizontal(uint32_t *pixels, unsigned int width, unsigne
for (unsigned int x = 0; x < width / 2; ++x)
std::swap(line[x], line[width - 1 - x]);
}
- return pixels;
+ return NULL;
}
uint32_t *CPicture::FlipVertical(uint32_t *pixels, unsigned int width, unsigned int height)
@@ -386,7 +386,7 @@ uint32_t *CPicture::FlipVertical(uint32_t *pixels, unsigned int width, unsigned
for (unsigned int x = 0; x < width; ++x)
std::swap(*line1++, *line2++);
}
- return pixels;
+ return NULL;
}
uint32_t *CPicture::Rotate180CCW(uint32_t *pixels, unsigned int width, unsigned int height)
@@ -405,7 +405,7 @@ uint32_t *CPicture::Rotate180CCW(uint32_t *pixels, unsigned int width, unsigned
for (unsigned int x = 0; x < width / 2; ++x)
std::swap(line[x], line[width - 1 - x]);
}
- return pixels;
+ return NULL;
}
uint32_t *CPicture::Rotate90CCW(uint32_t *pixels, unsigned int width, unsigned int height)

0 comments on commit 37fc72c

Please sign in to comment.
Something went wrong with that request. Please try again.