Added BitmapBuffer::setData() method
This commit is contained in:
committed by
Raphael Coeffic
parent
bb9a3c98e0
commit
37a6409da0
@@ -212,6 +212,12 @@ class BitmapBuffer: public BitmapBufferBase<pixel_t>
|
|||||||
~BitmapBuffer();
|
~BitmapBuffer();
|
||||||
|
|
||||||
void setDrawCtx(lv_draw_ctx_t* ctx) { draw_ctx = ctx; }
|
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)
|
inline void setFormat(uint8_t format)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user