summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
authorMichael Jennings <mej@kainx.org>2002-04-23 18:25:01 +0000
committerMichael Jennings <mej@kainx.org>2002-04-23 18:25:01 +0000
commite23c8117478db602f06b783a998660d16ad8f891 (patch)
treefb111dd1a0c27ec047af9892e7c9863420d4d031 /src/screen.c
parent6352ed7629f3a1cfb5332f8f6a1d4c667baa310c (diff)
downloadeterm-e23c8117478db602f06b783a998660d16ad8f891.tar.gz
Tue Apr 23 14:23:00 2002 Michael Jennings (mej)
Redraw the buttonbar properly when moved. Spotted by Azundris <hacks@azundris.com>. Also fixed the display of underlining with fonts lacking descent. SVN revision: 6166
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/screen.c b/src/screen.c
index 0a97529..c93f688 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -2050,9 +2050,14 @@ scr_refresh(int type)
}
#endif
- if ((rend & RS_Uline) && (descent > 1)) {
- XDrawLine(Xdisplay, draw_buffer, TermWin.gc, xpixel, ypixel + 1, xpixel + Width2Pixel(wlen) - 1, ypixel + 1);
- UPDATE_BOX(xpixel, ypixel + 1, xpixel + Width2Pixel(wlen) - 1, ypixel + 1);
+ if (rend & RS_Uline) {
+ if (descent > 1) {
+ XDrawLine(Xdisplay, draw_buffer, TermWin.gc, xpixel, ypixel + 1, xpixel + Width2Pixel(wlen) - 1, ypixel + 1);
+ UPDATE_BOX(xpixel, ypixel + 1, xpixel + Width2Pixel(wlen) - 1, ypixel + 1);
+ } else {
+ XDrawLine(Xdisplay, draw_buffer, TermWin.gc, xpixel, ypixel - 1, xpixel + Width2Pixel(wlen) - 1, ypixel - 1);
+ UPDATE_BOX(xpixel, ypixel - 1, xpixel + Width2Pixel(wlen) - 1, ypixel - 1);
+ }
}
if (is_cursor == 1) {
#ifndef NO_CURSORCOLOR