diff options
author | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2024-04-11 20:58:38 +0200 |
---|---|---|
committer | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2024-04-11 21:05:47 +0200 |
commit | 8b90c1f407b4f4aa3802858e23aa90d7dfbe17ad (patch) | |
tree | 4080e975e33df6f3c57ff5f3486f97923c9bbbe3 /stage3/shell.c | |
parent | a6669e496e46ef89673103b3330226c7d0201a1a (diff) | |
download | cuddles-8b90c1f407b4f4aa3802858e23aa90d7dfbe17ad.tar.xz |
bootinfo struct
Diffstat (limited to 'stage3/shell.c')
-rw-r--r-- | stage3/shell.c | 3 |
1 files changed, 2 insertions, 1 deletions
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))); } |