Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libcurses Fix a silly bit-shifting error that causes col...



details:   https://anonhg.NetBSD.org/src/rev/91458d629274
branches:  trunk
changeset: 485431:91458d629274
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Thu Apr 27 19:54:40 2000 +0000

description:
Fix a silly bit-shifting error that causes color pairs >=8 to fail.

diffstat:

 lib/libcurses/curses.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 9c3a0ed2b14a -r 91458d629274 lib/libcurses/curses.h
--- a/lib/libcurses/curses.h    Thu Apr 27 19:38:23 2000 +0000
+++ b/lib/libcurses/curses.h    Thu Apr 27 19:54:40 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: curses.h,v 1.44 2000/04/27 00:22:16 jdc Exp $  */
+/*     $NetBSD: curses.h,v 1.45 2000/04/27 19:54:40 mycroft Exp $      */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -243,8 +243,8 @@
 #define __BLANK                0x00400000      /* Added characters are blanked. */
 #define __PROTECT      0x00800000      /* Added characters are protected. */
 #define __ALTCHARSET   0x01000000      /* Added characters are ACS */
-#define __COLOR                0xee000000      /* Color bits */
-#define __ATTRIBUTES   0xefff0000      /* All 8-bit attribute bits */
+#define __COLOR                0x7e000000      /* Color bits */
+#define __ATTRIBUTES   0x7fff0000      /* All 8-bit attribute bits */
 
 typedef struct __ldata __LDATA;
 typedef struct __line  __LINE;



Home | Main Index | Thread Index | Old Index