Restore gfx_set_rect_grey

This function only used when we use the built-in bootlogo.
We need the same function in landscape mode too.
This commit is contained in:
balika011 2018-08-25 20:12:01 +02:00
parent 5fc35f99e5
commit ad59ae736e

View file

@ -481,7 +481,7 @@ void gfx_set_rect_grey(gfx_ctxt_t *ctxt, const u8 *buf, u32 size_x, u32 size_y,
{
for (u32 x = pos_x; x < (pos_x + size_x); x++)
{
gfx_set_pixel(ctxt, x, y, buf[pos] << 24 | buf[pos] << 16 | buf[pos] << 8 | buf[pos]);
memset(&ctxt->fb[x + y*ctxt->stride], buf[pos], 4);
pos++;
}
}