aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LineMarker.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/LineMarker.cxx')
-rw-r--r--src/LineMarker.cxx25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/LineMarker.cxx b/src/LineMarker.cxx
index a14e4e40d..de9968fab 100644
--- a/src/LineMarker.cxx
+++ b/src/LineMarker.cxx
@@ -92,7 +92,6 @@ void LineMarker::Draw(Surface *surface, PRectangle &rcWhole, Font &fontForCharac
break;
}
-
if ((markType == SC_MARK_PIXMAP) && (pxpm)) {
pxpm->Draw(surface, rcWhole);
return;
@@ -195,17 +194,17 @@ void LineMarker::Draw(Surface *surface, PRectangle &rcWhole, Font &fontForCharac
} else if (markType == SC_MARK_LCORNER) {
surface->PenColour(tail);
surface->MoveTo(centreX, rcWhole.top);
- surface->LineTo(centreX, rc.top + dimOn2);
- surface->LineTo(rc.right - 2, rc.top + dimOn2);
+ surface->LineTo(centreX, centreY);
+ surface->LineTo(rc.right - 1, centreY);
} else if (markType == SC_MARK_TCORNER) {
surface->PenColour(tail);
- surface->MoveTo(centreX, rc.top + dimOn2);
- surface->LineTo(rc.right - 2, rc.top + dimOn2);
+ surface->MoveTo(centreX, centreY);
+ surface->LineTo(rc.right - 1, centreY);
surface->PenColour(body);
surface->MoveTo(centreX, rcWhole.top);
- surface->LineTo(centreX, rc.top + dimOn2 + 1);
+ surface->LineTo(centreX, centreY + 1);
surface->PenColour(head);
surface->LineTo(centreX, rcWhole.bottom);
@@ -213,19 +212,19 @@ void LineMarker::Draw(Surface *surface, PRectangle &rcWhole, Font &fontForCharac
} else if (markType == SC_MARK_LCORNERCURVE) {
surface->PenColour(tail);
surface->MoveTo(centreX, rcWhole.top);
- surface->LineTo(centreX, rc.top + dimOn2-3);
- surface->LineTo(centreX+3, rc.top + dimOn2);
- surface->LineTo(rc.right - 1, rc.top + dimOn2);
+ surface->LineTo(centreX, centreY-3);
+ surface->LineTo(centreX+3, centreY);
+ surface->LineTo(rc.right - 1, centreY);
} else if (markType == SC_MARK_TCORNERCURVE) {
surface->PenColour(tail);
- surface->MoveTo(centreX, rc.top + dimOn2-3);
- surface->LineTo(centreX+3, rc.top + dimOn2);
- surface->LineTo(rc.right - 1, rc.top + dimOn2);
+ surface->MoveTo(centreX, centreY-3);
+ surface->LineTo(centreX+3, centreY);
+ surface->LineTo(rc.right - 1, centreY);
surface->PenColour(body);
surface->MoveTo(centreX, rcWhole.top);
- surface->LineTo(centreX, rc.top + dimOn2-2);
+ surface->LineTo(centreX, centreY-2);
surface->PenColour(head);
surface->LineTo(centreX, rcWhole.bottom);