summaryrefslogtreecommitdiffstats
path: root/sys/pc98
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2001-06-26 11:45:54 +0000
committernyan <nyan@FreeBSD.org>2001-06-26 11:45:54 +0000
commit56c09a5ee8f34dde1cce9fc6059659a546509c4f (patch)
treed3971f2d600bea1b78e34b0f93db6c28a9887109 /sys/pc98
parent5500e9efc4cbc02aa1aa64aa8b1582a543d711cb (diff)
downloadFreeBSD-src-56c09a5ee8f34dde1cce9fc6059659a546509c4f.zip
FreeBSD-src-56c09a5ee8f34dde1cce9fc6059659a546509c4f.tar.gz
Merged from sys/dev/syscons/scterm-sc.c revison 1.15.
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/cbus/scterm-sck.c3
-rw-r--r--sys/pc98/pc98/scterm-sck.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/pc98/cbus/scterm-sck.c b/sys/pc98/cbus/scterm-sck.c
index 2dfc94f..2db2c31 100644
--- a/sys/pc98/cbus/scterm-sck.c
+++ b/sys/pc98/cbus/scterm-sck.c
@@ -628,7 +628,8 @@ scterm_scan_esc(scr_stat *scp, term_stat *tcp, u_char c)
case 'B': /* set bell pitch and duration */
if (tcp->num_param == 2) {
scp->bell_pitch = tcp->param[0];
- scp->bell_duration = tcp->param[1];
+ scp->bell_duration =
+ (tcp->param[1] * hz + 99) / 100;
}
break;
diff --git a/sys/pc98/pc98/scterm-sck.c b/sys/pc98/pc98/scterm-sck.c
index 2dfc94f..2db2c31 100644
--- a/sys/pc98/pc98/scterm-sck.c
+++ b/sys/pc98/pc98/scterm-sck.c
@@ -628,7 +628,8 @@ scterm_scan_esc(scr_stat *scp, term_stat *tcp, u_char c)
case 'B': /* set bell pitch and duration */
if (tcp->num_param == 2) {
scp->bell_pitch = tcp->param[0];
- scp->bell_duration = tcp->param[1];
+ scp->bell_duration =
+ (tcp->param[1] * hz + 99) / 100;
}
break;
OpenPOWER on IntegriCloud