mirror of
https://github.com/CTCaer/hekate.git
synced 2025-04-20 11:35:56 +00:00
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:
parent
5fc35f99e5
commit
ad59ae736e
1 changed files with 1 additions and 1 deletions
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue