mirror of
https://github.com/CTCaer/hekate.git
synced 2025-08-02 22:28:49 +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++)
|
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++;
|
pos++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue