From: Ben Harris Date: Tue, 28 Jan 2003 00:25:20 +0000 (+0000) Subject: Fix a minor oversight in the new 16-colour code for the Mac, which was X-Git-Tag: 0.54~457 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=b29a64c760787be2cdadb7d73a05df902ec8432b;p=PuTTY.git Fix a minor oversight in the new 16-colour code for the Mac, which was calculating the background colour wrongly. [originally from svn r2738] --- diff --git a/mac/macterm.c b/mac/macterm.c index fc0262e9..0bc25f5e 100644 --- a/mac/macterm.c +++ b/mac/macterm.c @@ -1,4 +1,4 @@ -/* $Id: macterm.c,v 1.58 2003/01/27 23:03:30 simon Exp $ */ +/* $Id: macterm.c,v 1.59 2003/01/28 00:25:20 ben Exp $ */ /* * Copyright (c) 1999 Simon Tatham * Copyright (c) 1999, 2002 Ben Harris @@ -1092,7 +1092,7 @@ static pascal void do_text_for_device(short depth, short devflags, if (depth > 2) { fgcolour = ((a->attr & ATTR_FGMASK) >> ATTR_FGSHIFT); fgcolour = (fgcolour & 0xF) * 2 + (fgcolour & 0x10 ? 1 : 0); - bgcolour = ((a->attr & ATTR_BGMASK) >> ATTR_BGSHIFT) * 2; + bgcolour = ((a->attr & ATTR_BGMASK) >> ATTR_BGSHIFT); bgcolour = (bgcolour & 0xF) * 2 + (bgcolour & 0x10 ? 1 : 0); } else { /*