Added BitmapBuffer::setData() method

This commit is contained in:
Raphael Coeffic
2022-06-11 15:13:11 +02:00
committed by Raphael Coeffic
parent bb9a3c98e0
commit 37a6409da0
+6
View File
@@ -212,6 +212,12 @@ class BitmapBuffer: public BitmapBufferBase<pixel_t>
~BitmapBuffer();
void setDrawCtx(lv_draw_ctx_t* ctx) { draw_ctx = ctx; }
void setData(uint16_t* d) {
if (!dataAllocated) {
data = d;
data_end = d + (_width * _height);
}
}
inline void setFormat(uint8_t format)
{