summaryrefslogtreecommitdiffstats
path: root/ue2/imgsynth2/cpixelformat_bgr24.cpp
diff options
context:
space:
mode:
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())