Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcurses Make sure _acs_char[] is copied to screen->acs...
details: https://anonhg.NetBSD.org/src/rev/dd1a95f9ab01
branches: trunk
changeset: 525450:dd1a95f9ab01
user: mycroft <mycroft%NetBSD.org@localhost>
date: Thu Apr 11 18:06:41 2002 +0000
description:
Make sure _acs_char[] is copied to screen->acs_char[] even when there is no
ac attribute. This fixes box-drawing on displays with no ac.
diffstat:
lib/libcurses/acs.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diffs (44 lines):
diff -r d8b1064e60a0 -r dd1a95f9ab01 lib/libcurses/acs.c
--- a/lib/libcurses/acs.c Thu Apr 11 17:31:23 2002 +0000
+++ b/lib/libcurses/acs.c Thu Apr 11 18:06:41 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acs.c,v 1.10 2002/01/04 13:53:26 blymn Exp $ */
+/* $NetBSD: acs.c,v 1.11 2002/04/11 18:06:41 mycroft Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: acs.c,v 1.10 2002/01/04 13:53:26 blymn Exp $");
+__RCSID("$NetBSD: acs.c,v 1.11 2002/04/11 18:06:41 mycroft Exp $");
#endif /* not lint */
#include "curses.h"
@@ -90,7 +90,7 @@
ACS_BULLET = 'o';
if (screen->tc_ac == NULL)
- return;
+ goto out;
aofac = screen->tc_ac;
@@ -110,12 +110,13 @@
#endif
}
- for (count=0; count < NUM_ACS; count++)
- screen->acs_char[count]= _acs_char[count];
-
if (screen->tc_eA != NULL)
t_puts(screen->cursesi_genbuf, screen->tc_eA, 0,
__cputchar_args, screen->outfd);
+
+out:
+ for (count=0; count < NUM_ACS; count++)
+ screen->acs_char[count]= _acs_char[count];
}
void
Home |
Main Index |
Thread Index |
Old Index