From 8b90c1f407b4f4aa3802858e23aa90d7dfbe17ad Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Thu, 11 Apr 2024 20:58:38 +0200 Subject: bootinfo struct --- stage3/shell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'stage3/shell.c') diff --git a/stage3/shell.c b/stage3/shell.c index cf628ab..9fd0f93 100644 --- a/stage3/shell.c +++ b/stage3/shell.c @@ -12,6 +12,7 @@ #include "thread.h" #include "rng.h" #include "cheese_demo.h" +#include "bootinfo.h" static void cmd_echo(str arg) { @@ -82,7 +83,7 @@ static void cmd_img(str arg) if (f.len != 2 * sizeof(u32) + width * height * sizeof(color)) print(S("img: invalid file size\n")); else - gfx_draw_img(gfx_info->width-width, 0, width, height, + gfx_draw_img(bootinfo->gfx_width-width, 0, width, height, (void *) (f.data + 2 * sizeof(u32))); } -- cgit v1.2.3