From 37fc72c4f256d414f2ac85a3a9848094b45853de Mon Sep 17 00:00:00 2001 From: Jonathan Marshall Date: Sun, 1 Jul 2012 22:33:16 +1200 Subject: [pictures] fix flipping horizontally/vertically and rotate by 180 swapping the width and height --- xbmc/pictures/Picture.cpp | 6 +++--- 1 file 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) -- cgit v1.2.3