fix: the check to prevent out of screenbuffer drawing did not work

This commit is contained in:
gagarinlg
2022-07-25 10:28:39 +02:00
committed by Raphael Coeffic
parent d76c6415c9
commit 4d34becd2c
+1 -1
View File
@@ -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)