From 052974c51a53260ed57c51db3739c010ffe2fb3e Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 14 Aug 2003 13:14:07 +0000 Subject: Added BOX indicator. --- src/Indicator.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/Indicator.cxx') diff --git a/src/Indicator.cxx b/src/Indicator.cxx index 1e386b68e..a42abb203 100644 --- a/src/Indicator.cxx +++ b/src/Indicator.cxx @@ -10,7 +10,7 @@ #include "Scintilla.h" #include "Indicator.h" -void Indicator::Draw(Surface *surface, PRectangle &rc) { +void Indicator::Draw(Surface *surface, const PRectangle &rc, const PRectangle &rcLine) { surface->PenColour(fore.allocated); int ymid = (rc.bottom + rc.top) / 2; if (style == INDIC_SQUIGGLE) { @@ -57,6 +57,12 @@ void Indicator::Draw(Surface *surface, PRectangle &rc) { surface->LineTo(rc.right, rc.top - 4); } else if (style == INDIC_HIDDEN) { // Draw nothing + } else if (style == INDIC_BOX) { + surface->MoveTo(rc.left, ymid+1); + surface->LineTo(rc.right, ymid+1); + surface->LineTo(rc.right, rcLine.top+1); + surface->LineTo(rc.left, rcLine.top+1); + surface->LineTo(rc.left, ymid+1); } else { // Either INDIC_PLAIN or unknown surface->MoveTo(rc.left, ymid); surface->LineTo(rc.right, ymid); -- cgit v1.2.3