coco3: keep up with changes in graphics.h
authorBrett Gordon <beretta42@gmail.com>
Sun, 4 Oct 2015 14:12:02 +0000 (10:12 -0400)
committerBrett Gordon <beretta42@gmail.com>
Wed, 7 Oct 2015 14:46:49 +0000 (10:46 -0400)
Kernel/platform-coco3/devtty.c

index a9459d8..05b470d 100644 (file)
@@ -437,15 +437,18 @@ unsigned char vt_map(unsigned char c)
 }
 
 static struct display display = {
-  256, 192,
-  256, 192,
-  0xFF, 0xFF,          /* For now */
-  FMT_MONO_BW,
-  HW_UNACCEL,
-  GFX_ENABLE,
-  0,
-  GFX_SETPIXEL,
-  0
+  0,               /* Mode  number */
+  256, 192,        /* screen size */
+  256, 192,        /* buffer size */
+  0xFF, 0xFF,     /* no pan, scroll */
+  FMT_TEXT,        /* all our supported modes */
+  HW_UNACCEL,      /* no acceleration */
+  GFX_PALETTE | 
+  GFX_MULTIMODE |
+  GFX_PALETTE_SET |
+  GFX_TEXT,        /* all the crap we support in this mode */
+  0,               /* Memory size irrelevant */
+  0,               /* supports no commands */
 };