[common] rects: implement routine to copy rectangles from framebuffer

This commit is contained in:
Quantum authored and Geoffrey McRae committed 2021-08-08 08:30:11 +10:00
1 parent cab95c5eed
commit 0462cee9db
4 files changed
+41 -1

No files matched your search

+5
View File
@@ -214,6 +214,11 @@ bool framebuffer_write(FrameBuffer * frame, const void * restrict src, size_t si
return true;
}
const uint8_t * framebuffer_get_buffer(const FrameBuffer * frame)
{
return frame->data;
}
uint8_t * framebuffer_get_data(FrameBuffer * frame)
{
return frame->data;