aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2003-04-05 23:42:18 +0000
committernyamatongwe <unknown>2003-04-05 23:42:18 +0000
commit4069de879da4066b3691156b620c96a9e4d32fc3 (patch)
tree336d75f1488bf5e168a1b60a8aa278d664028b8b /src
parent0ea4986249c5a8d43f6c76a791df6640a74fcf5f (diff)
downloadscintilla-mirror-4069de879da4066b3691156b620c96a9e4d32fc3.tar.gz
Tweaked arrow position slightly.
Diffstat (limited to 'src')
-rw-r--r--src/CallTip.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/CallTip.cxx b/src/CallTip.cxx
index 3d53eeb99..314f9bfa7 100644
--- a/src/CallTip.cxx
+++ b/src/CallTip.cxx
@@ -74,7 +74,7 @@ void CallTip::DrawChunk(Surface *surface, int &x, const char *s,
if (draw) {
const int halfWidth = widthArrow / 2 - 3;
const int centreX = x + widthArrow / 2 - 1;
- const int centreY = ytext - halfWidth - 1;
+ const int centreY = (rcClient.top + rcClient.bottom) / 2;
rcClient.left = x;
rcClient.right = xEnd;
surface->FillRectangle(rcClient, colourBG.allocated);
@@ -93,9 +93,9 @@ void CallTip::DrawChunk(Surface *surface, int &x, const char *s,
} else {
// Down arrow
Point pts[] = {
- Point(centreX - halfWidth, centreY - halfWidth / 2 + 2),
- Point(centreX + halfWidth, centreY - halfWidth / 2 + 2),
- Point(centreX, centreY + halfWidth - halfWidth / 2 + 2),
+ Point(centreX - halfWidth, centreY - halfWidth / 2),
+ Point(centreX + halfWidth, centreY - halfWidth / 2),
+ Point(centreX, centreY + halfWidth - halfWidth / 2),
};
surface->Polygon(pts, sizeof(pts) / sizeof(pts[0]),
colourBG.allocated, colourBG.allocated);