diff options
author | pixel <pixel> | 2003-04-04 16:31:03 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-04-04 16:31:03 +0000 |
commit | a099991354e31b55a0d0903ba5755f13aeb43824 (patch) | |
tree | 3c4e3d9b2265857f4f18de4418ec0012bceffaaf /lib/glshape.cc | |
parent | feba563611f39efe4f71cf09347d5aa9cd13ada6 (diff) |
Backport fixing
Diffstat (limited to 'lib/glshape.cc')
-rw-r--r-- | lib/glshape.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/glshape.cc b/lib/glshape.cc index 9257257..e1c1faf 100644 --- a/lib/glshape.cc +++ b/lib/glshape.cc @@ -40,10 +40,18 @@ void mogltk::glshape::hline(int x1, int x2, int y, ColorP c1, ColorP c2) { box(x1, y, x2, y, c1, c2, c1, c2); } +void mogltk::glshape::hline(int x1, int x2, int y, ColorP c) { + box(x1, y, x2, y, c, c, c, c); +} + void mogltk::glshape::vline(int x, int y1, int y2, ColorP c1, ColorP c2) { box(x, y1, x, y2, c1, c1, c2, c2); } +void mogltk::glshape::vline(int x, int y1, int y2, ColorP c) { + box(x, y1, x, y2, c, c, c, c); +} + void mogltk::glshape::pixel(int x, int y, ColorP c) { box(x, y, x, y, c); } @@ -59,8 +67,8 @@ void mogltk::glshape::obox(int x1, int y1, int x2, int y2, ColorP c1, ColorP c2, hline(x1, x2, y1, c1, c2); hline(x1, x2, y2, c3, c4); - vline(x1, y1, y2, c1, c3); - vline(x2, y1, y2, c2, c4); + vline(x1, y1 + 1, y2 - 1, c1, c3); + vline(x2, y1 + 1, y2 - 1, c2, c4); LEAVE; } |