aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Marshall <jmarshall@never.you.mind>2012-07-01 22:33:16 +1200
committerJonathan Marshall <jmarshall@never.you.mind>2012-07-01 22:33:16 +1200
commit37fc72c4f256d414f2ac85a3a9848094b45853de (patch)
treecfd6a4cf2aef8014e6989d54172b69053cab9256
parent3b7d4b279a8e425c35111f615019b796c656233d (diff)
[pictures] fix flipping horizontally/vertically and rotate by 180 swapping the width and heightFrodo_alpha3
-rw-r--r--xbmc/pictures/Picture.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/xbmc/pictures/Picture.cpp b/xbmc/pictures/Picture.cpp
index d73cb17b9b..c8bb14ec43 100644
--- a/xbmc/pictures/Picture.cpp
+++ b/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)