summaryrefslogtreecommitdiffstats
path: root/ue2/imgsynth2/cpixelformat_bgr555.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ue2/imgsynth2/cpixelformat_bgr555.cpp')
-rw-r--r--ue2/imgsynth2/cpixelformat_bgr555.cpp2
1 files changed, 2 insertions, 0 deletions
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())