[syslinux:firmware] ansi: switch cindex type to attr_t

syslinux-bot for James Buren ryuo at frugalware.org
Wed Dec 11 02:09:09 PST 2013


Commit-ID:  98a8760069e9f2d83bf45f2ed8c2feb5610342a7
Gitweb:     http://www.syslinux.org/commit/98a8760069e9f2d83bf45f2ed8c2feb5610342a7
Author:     James Buren <ryuo at frugalware.org>
AuthorDate: Tue, 12 Nov 2013 01:56:46 -0600
Committer:  Matt Fleming <matt.fleming at intel.com>
CommitDate: Wed, 11 Dec 2013 09:57:03 +0000

ansi: switch cindex type to attr_t

To fully support color tables with more than 256 entries

Signed-off-by: Matt Fleming <matt.fleming at intel.com>

---
 com32/lib/sys/ansi.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/com32/lib/sys/ansi.h b/com32/lib/sys/ansi.h
index 7ccafc8..39a6f41 100644
--- a/com32/lib/sys/ansi.h
+++ b/com32/lib/sys/ansi.h
@@ -7,6 +7,7 @@
 
 #include <inttypes.h>
 #include <stdbool.h>
+#include "vesa/video.h"
 
 #define ANSI_MAX_PARMS	16
 
@@ -29,7 +30,7 @@ struct term_state {
     bool pvt;			/* Private code? */
     struct curxy xy;
     struct curxy saved_xy;
-    uint8_t cindex;		/* SOH color index */
+    attr_t cindex;		/* SOH color index */
     uint8_t fg;
     uint8_t bg;
     uint8_t intensity;


More information about the Syslinux-commits mailing list