fix: the check to prevent out of screenbuffer drawing did not work
This commit is contained in:
committed by
Raphael Coeffic
parent
d76c6415c9
commit
4d34becd2c
+1
-1
@@ -403,7 +403,7 @@ class BitmapBuffer: public BitmapBufferBase<pixel_t>
|
|||||||
|
|
||||||
inline void drawPixel(pixel_t * p, pixel_t value)
|
inline void drawPixel(pixel_t * p, pixel_t value)
|
||||||
{
|
{
|
||||||
if (data && (data <= p || p < data_end)) {
|
if (data && (data <= p && p < data_end)) {
|
||||||
*p = value;
|
*p = value;
|
||||||
}
|
}
|
||||||
#if defined(DEBUG)
|
#if defined(DEBUG)
|
||||||
|
|||||||
Reference in New Issue
Block a user