From 6674197e853ddec4ab1af04ede3ebabcdcc581c5 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 8 Sep 2008 22:03:56 +0000 Subject: Fix bold/non-bold mismatch in 256 colour mode by adding an extra 8 bits (ick) onto the attributes and using two of them to mark the fg and bg as 256 colours when necessary. If only it was 255 colours we would have one value for default and wouln't need this :-/. --- screen-write.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'screen-write.c') diff --git a/screen-write.c b/screen-write.c index ddcaff6c..c4f3fef1 100644 --- a/screen-write.c +++ b/screen-write.c @@ -1,4 +1,4 @@ -/* $Id: screen-write.c,v 1.11 2008-09-08 17:40:51 nicm Exp $ */ +/* $Id: screen-write.c,v 1.12 2008-09-08 22:03:54 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -172,7 +172,7 @@ screen_write_put_string(struct screen_write_ctx *ctx, const char *fmt, ...) /* Set screen attributes. */ void screen_write_set_attributes( - struct screen_write_ctx *ctx, u_char attr, u_char fg, u_char bg) + struct screen_write_ctx *ctx, u_short attr, u_char fg, u_char bg) { struct screen *s = ctx->s; -- cgit