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

This commit is contained in:
Quantum
2021-08-06 23:58:26 -04:00
committed by Geoffrey McRae
parent cab95c5eed
commit 0462cee9db
4 changed files with 41 additions and 1 deletions

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;