public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab51846
)
plato: off by one errors in box etc
author
Alan Cox
<alan@linux.intel.com>
Sat, 8 Sep 2018 21:01:17 +0000
(22:01 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Sat, 8 Sep 2018 21:01:17 +0000
(22:01 +0100)
Applications/plato/tgi_ascii.c
patch
|
blob
|
history
diff --git
a/Applications/plato/tgi_ascii.c
b/Applications/plato/tgi_ascii.c
index
3c23338
..
c2933c9
100644
(file)
--- a/
Applications/plato/tgi_ascii.c
+++ b/
Applications/plato/tgi_ascii.c
@@
-42,13
+42,13
@@
void tgi_setpixel(int x, int y)
void tgi_bar(int x1, int y1, int x2, int y2)
{
int x,y;
- for (y = y1; y < y2; y++) {
+ for (y = y1; y <
=
y2; y++) {
printf("\033[%d;%dH", y, x1);
if (pen)
- for(x = x1; x < x2; x++)
+ for(x = x1; x <
=
x2; x++)
putchar('#');
else
- for(x = x1; x < x2; x++)
+ for(x = x1; x <
=
x2; x++)
putchar(' ');
}
// printf("[R %d,%d,%d,%d->%d]", x1, y1, x2,y2, pen);