diff --git a/bootloader/gfx/gfx.c b/bootloader/gfx/gfx.c index 37d7c372..eae99e20 100644 --- a/bootloader/gfx/gfx.c +++ b/bootloader/gfx/gfx.c @@ -128,9 +128,9 @@ void gfx_clear_grey(u8 color) memset(gfx_ctxt.fb, color, gfx_ctxt.width * gfx_ctxt.height * 4); } -void gfx_clear_partial_grey(u8 color, u32 pos_x, u32 height) +void gfx_clear_partial_grey(u8 color, u32 pos_y, u32 height) { - memset(gfx_ctxt.fb + pos_x * gfx_ctxt.stride, color, height * 4 * gfx_ctxt.stride); + memset(gfx_ctxt.fb + pos_y * gfx_ctxt.stride, color, height * 4 * gfx_ctxt.stride); } void gfx_clear_color(u32 color) diff --git a/bootloader/gfx/gfx.h b/bootloader/gfx/gfx.h index b2fa9152..141e101f 100644 --- a/bootloader/gfx/gfx.h +++ b/bootloader/gfx/gfx.h @@ -69,7 +69,7 @@ extern gfx_con_t gfx_con; void gfx_init_ctxt(u32 *fb, u32 width, u32 height, u32 stride); void gfx_clear_grey(u8 color); -void gfx_clear_partial_grey(u8 color, u32 pos_x, u32 height); +void gfx_clear_partial_grey(u8 color, u32 pos_y, u32 height); void gfx_clear_color(u32 color); void gfx_con_init(); void gfx_con_setcol(u32 fgcol, int fillbg, u32 bgcol);