summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormanuel <manuel@nc8430.lan>2009-05-02 23:05:28 +0200
committermanuel <manuel@nc8430.lan>2009-05-02 23:05:28 +0200
commitc9945c50c3cfd49c00a458e3f0be7ef5be60439f (patch)
tree3ac9140cc27f90cb3d3263181839a8c72d473a56
parenta17119a3e28ba4d1e82561d6dfd9a676da783db3 (diff)
downloadooprog-c9945c50c3cfd49c00a458e3f0be7ef5be60439f.tar.gz
ooprog-c9945c50c3cfd49c00a458e3f0be7ef5be60439f.tar.bz2
ooprog-c9945c50c3cfd49c00a458e3f0be7ef5be60439f.zip
some more assert()s again
-rw-r--r--ue2/imgsynth2/cpixelformat_bgr24.cpp2
-rw-r--r--ue2/imgsynth2/cpixelformat_bgr555.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/ue2/imgsynth2/cpixelformat_bgr24.cpp b/ue2/imgsynth2/cpixelformat_bgr24.cpp
index 2332142..6ebdf3f 100644
--- a/ue2/imgsynth2/cpixelformat_bgr24.cpp
+++ b/ue2/imgsynth2/cpixelformat_bgr24.cpp
@@ -17,6 +17,7 @@ void CPixelFormat_BGR24::getPixel(RGBPIXEL& pixel, uint32_t x, uint32_t y)
17 if (m_bitmap->getPixelData() == NULL) 17 if (m_bitmap->getPixelData() == NULL)
18 throw PixelFormatError("No pixelbuffer allocated."); 18 throw PixelFormatError("No pixelbuffer allocated.");
19 assert(m_bitmap->getPixelDataSize() > 0); 19 assert(m_bitmap->getPixelDataSize() > 0);
20 assert(m_bitmap->getRowSize() > 0);
20 21
21 /* if the y-coordinates are mirrored */ 22 /* if the y-coordinates are mirrored */
22 if (m_bitmap->isMirrored()) 23 if (m_bitmap->isMirrored())
@@ -40,6 +41,7 @@ void CPixelFormat_BGR24::setPixel(const RGBPIXEL& pixel, uint32_t x, uint32_t y)
40 if (m_bitmap->getPixelData() == NULL) 41 if (m_bitmap->getPixelData() == NULL)
41 throw PixelFormatError("No pixelbuffer allocated."); 42 throw PixelFormatError("No pixelbuffer allocated.");
42 assert(m_bitmap->getPixelDataSize() > 0); 43 assert(m_bitmap->getPixelDataSize() > 0);
44 assert(m_bitmap->getRowSize() > 0);
43 45
44 /* if the y-coordinates are mirrored */ 46 /* if the y-coordinates are mirrored */
45 if (m_bitmap->isMirrored()) 47 if (m_bitmap->isMirrored())
diff --git a/ue2/imgsynth2/cpixelformat_bgr555.cpp b/ue2/imgsynth2/cpixelformat_bgr555.cpp
index ba12cb5..35205e8 100644
--- a/ue2/imgsynth2/cpixelformat_bgr555.cpp
+++ b/ue2/imgsynth2/cpixelformat_bgr555.cpp
@@ -18,6 +18,7 @@ void CPixelFormat_BGR555::getPixel(RGBPIXEL& pixel, uint32_t x, uint32_t y)
18 if (m_bitmap->getPixelData() == NULL) 18 if (m_bitmap->getPixelData() == NULL)
19 throw PixelFormatError("No pixelbuffer allocated."); 19 throw PixelFormatError("No pixelbuffer allocated.");
20 assert(m_bitmap->getPixelDataSize() > 0); 20 assert(m_bitmap->getPixelDataSize() > 0);
21 assert(m_bitmap->getRowSize() > 0);
21 22
22 /* if the y-coordinates are mirrored */ 23 /* if the y-coordinates are mirrored */
23 if (m_bitmap->isMirrored()) 24 if (m_bitmap->isMirrored())
@@ -42,6 +43,7 @@ void CPixelFormat_BGR555::setPixel(const RGBPIXEL& pixel, uint32_t x, uint32_t y
42 if (m_bitmap->getPixelData() == NULL) 43 if (m_bitmap->getPixelData() == NULL)
43 throw PixelFormatError("No pixelbuffer allocated."); 44 throw PixelFormatError("No pixelbuffer allocated.");
44 assert(m_bitmap->getPixelDataSize() > 0); 45 assert(m_bitmap->getPixelDataSize() > 0);
46 assert(m_bitmap->getRowSize() > 0);
45 47
46 /* if the y-coordinates are mirrored */ 48 /* if the y-coordinates are mirrored */
47 if (m_bitmap->isMirrored()) 49 if (m_bitmap->isMirrored())