You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version of embedded-graphics in use (if applicable): 0.8.1
Description of the problem/feature request/other
FrameBuffer embeds a large array data: [u8; N]. Box::new(FrameBuffer::new()) still constructs the frame buffer on the stack before moving it to a box. Ideally I should be able to provide my own backing buffer on the heap.
As a workaround, I can use alloc with the correct layout and use a Box::from_raw.
The text was updated successfully, but these errors were encountered:
Description of the problem/feature request/other
FrameBuffer
embeds a large arraydata: [u8; N]
.Box::new(FrameBuffer::new())
still constructs the frame buffer on the stack before moving it to a box. Ideally I should be able to provide my own backing buffer on the heap.As a workaround, I can use
alloc
with the correct layout and use aBox::from_raw
.The text was updated successfully, but these errors were encountered: