summaryrefslogtreecommitdiffstats
path: root/ue2/imgsynth2/cpixelformat_bgr24.cpp
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 /ue2/imgsynth2/cpixelformat_bgr24.cpp
parenta17119a3e28ba4d1e82561d6dfd9a676da783db3 (diff)
downloadooprog-c9945c50c3cfd49c00a458e3f0be7ef5be60439f.tar.gz
ooprog-c9945c50c3cfd49c00a458e3f0be7ef5be60439f.tar.bz2
ooprog-c9945c50c3cfd49c00a458e3f0be7ef5be60439f.zip
some more assert()s again
Diffstat (limited to 'ue2/imgsynth2/cpixelformat_bgr24.cpp')
-rw-r--r--ue2/imgsynth2/cpixelformat_bgr24.cpp2
1 files changed, 2 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())