From 9d4bdc35c9f2117680d9fe83d2db31f4c50e9333 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 3 Oct 2015 16:57:07 +0100 Subject: [PATCH] graphics: add 'text only' mode type We need this so we can describe modes for 40/80 switching, or moving from a graphics to a text mode --- Kernel/include/graphics.h | 1 + Library/include/sys/graphics.h | 1 + 2 files changed, 2 insertions(+) diff --git a/Kernel/include/graphics.h b/Kernel/include/graphics.h index 115612f7..62759c6f 100644 --- a/Kernel/include/graphics.h +++ b/Kernel/include/graphics.h @@ -12,6 +12,7 @@ struct display { #define FMT_MONO_WB 1 #define FMT_COLOUR4 2 #define FMT_COLOUR16 3 +#define FMT_TEXT 4 /* Text only mode */ /* Those sufficiently funky */ #define FMT_SPECTRUM 128 #define FMT_VDP 129 /* VDP graphics engines */ diff --git a/Library/include/sys/graphics.h b/Library/include/sys/graphics.h index 857639f9..768fd118 100644 --- a/Library/include/sys/graphics.h +++ b/Library/include/sys/graphics.h @@ -12,6 +12,7 @@ struct display { #define FMT_MONO_WB 1 #define FMT_COLOUR4 2 #define FMT_COLOUR16 3 +#define FMT_TEXT 4 /* Text only mode */ /* Those sufficiently funky */ #define FMT_SPECTRUM 128 #define FMT_VDP 129 /* VDP graphics engines */ -- 2.34.1