graphics: add 'text only' mode type
authorAlan Cox <alan@linux.intel.com>
Sat, 3 Oct 2015 15:57:07 +0000 (16:57 +0100)
committerAlan Cox <alan@linux.intel.com>
Sat, 3 Oct 2015 15:57:07 +0000 (16:57 +0100)
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
Library/include/sys/graphics.h

index 115612f..62759c6 100644 (file)
@@ -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 */
index 857639f..768fd11 100644 (file)
@@ -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 */