Mercurial > hg > xemacs-beta
comparison src/redisplay-x.c @ 664:6e99cc8c6ca5
[xemacs-hg @ 2001-09-18 05:04:26 by ben]
fileio.c: Fix various C++ compile errors in Andy's recent code.
callint.c, editfns.c, emacs.c, lread.c, redisplay-x.c: Fix sign-compare warnings.
scrollbar-msw.c: Fix crash under MS Windows. See comment around line 223 for
explanation.
font-lock.el: fix problem when you insert a comment on the line before a line of
code: if we use the following char, then when you hit backspace,
the following line of code turns the comment color.
configure.in: Don't use -Wshadow when compiling with g++ or you get buried in
silly warnings. This patch was already applied but somehow got
unapplied. Stephen?
author | ben |
---|---|
date | Tue, 18 Sep 2001 05:06:57 +0000 |
parents | b39c14581166 |
children | e38acbeb1cae |
comparison
equal
deleted
inserted
replaced
663:ebdebdbf3f84 | 664:6e99cc8c6ca5 |
---|---|
2074 XKeyboardControl ctl; | 2074 XKeyboardControl ctl; |
2075 XSync (display, 0); | 2075 XSync (display, 0); |
2076 /* #### grab server? */ | 2076 /* #### grab server? */ |
2077 XGetKeyboardControl (display, &state); | 2077 XGetKeyboardControl (display, &state); |
2078 | 2078 |
2079 ctl.bell_pitch = (pitch >= 0 ? pitch : state.bell_pitch); | 2079 ctl.bell_pitch = (pitch >= 0 ? pitch : (int) state.bell_pitch); |
2080 ctl.bell_duration = (duration >= 0 ? duration : state.bell_duration); | 2080 ctl.bell_duration = (duration >= 0 ? duration : (int) state.bell_duration); |
2081 XChangeKeyboardControl (display, KBBellPitch|KBBellDuration, &ctl); | 2081 XChangeKeyboardControl (display, KBBellPitch|KBBellDuration, &ctl); |
2082 | 2082 |
2083 XBell (display, (volume * 2) - 100); | 2083 XBell (display, (volume * 2) - 100); |
2084 | 2084 |
2085 ctl.bell_pitch = state.bell_pitch; | 2085 ctl.bell_pitch = state.bell_pitch; |