summaryrefslogtreecommitdiff
path: root/src/devices/grotty
diff options
context:
space:
mode:
authorwl <wl>2007-11-29 18:43:21 +0000
committerwl <wl>2007-11-29 18:43:21 +0000
commit14cdd53c773cb9b4c4d52a6873252ce23530d35a (patch)
tree6196c44b8c632309e25620a423cacd3bb2da4f10 /src/devices/grotty
parent6645dadd86aa0888a313d7e65b82916858c86929 (diff)
downloadgroff-14cdd53c773cb9b4c4d52a6873252ce23530d35a.tar.gz
* src/devices/grotty/tty.cpp (tty_printer::line): Fix line lengths.
typo.
Diffstat (limited to 'src/devices/grotty')
-rw-r--r--src/devices/grotty/tty.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/grotty/tty.cpp b/src/devices/grotty/tty.cpp
index be06ea7d..1fab0cc7 100644
--- a/src/devices/grotty/tty.cpp
+++ b/src/devices/grotty/tty.cpp
@@ -556,7 +556,7 @@ void tty_printer::line(int hpos, int vpos, int dx, int dy,
v += len;
len = -len;
}
- if (len >= 0 && len <= font::vert)
+ if (len == 0)
add_char(vline_char, font::hor, hpos, v, col, fill,
VDRAW_MODE|START_LINE|END_LINE);
else {
@@ -582,7 +582,7 @@ void tty_printer::line(int hpos, int vpos, int dx, int dy,
h += len;
len = -len;
}
- if (len >= 0 && len <= font::hor)
+ if (len == 0)
add_char(hline_char, font::hor, h, vpos, col, fill,
HDRAW_MODE|START_LINE|END_LINE);
else {