aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-06-06 21:45:47 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-06-06 21:45:47 +0100
commit960db500527928e88bfb3787c9861a8b09f44749 (patch)
treefa37355a2c51216989dd6fb6d3283adb4213aee7 /src
parent269c766ec54edd0bc06d1df7385e2d5ed718b02b (diff)
downloadgold-mine-run-960db500527928e88bfb3787c9861a8b09f44749.tar.gz
gold-mine-run-960db500527928e88bfb3787c9861a8b09f44749.zip
Go to text mode before reporting the error
Diffstat (limited to 'src')
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 9d74efc..9876404 100644
--- a/src/main.c
+++ b/src/main.c
@@ -32,6 +32,7 @@ int main(int argc, char *argv[])
uint8_t *screen = open_framebuffer();
if (!screen)
{
+ set_mode(3);
fprintf(stderr, "ERROR: failed to open the framebuffer\n");
return 1;
}