diff options
| author | Mitchell Foral <unknown> | 2021-04-01 13:51:42 +1100 | 
|---|---|---|
| committer | Mitchell Foral <unknown> | 2021-04-01 13:51:42 +1100 | 
| commit | ae0c56c9c2762f386f001478d764af005a9fa15f (patch) | |
| tree | 08d097bc6c3fa314799926092ee48cd0d4887e38 /src | |
| parent | ae3d3fb6776d56ccc16eea5e9757d522258e4c2a (diff) | |
| download | scintilla-mirror-ae0c56c9c2762f386f001478d764af005a9fa15f.tar.gz | |
Fix drawing of calltip on curses.
Diffstat (limited to 'src')
| -rw-r--r-- | src/CallTip.cxx | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/src/CallTip.cxx b/src/CallTip.cxx index 29208cb74..22f559ef7 100644 --- a/src/CallTip.cxx +++ b/src/CallTip.cxx @@ -250,7 +250,7 @@ void CallTip::PaintCT(Surface *surfaceWindow) {  	offsetMain = insetX;    // initial alignment assuming no arrows  	PaintContents(surfaceWindow, true); -#ifndef __APPLE__ +#if !defined(__APPLE__) && !PLAT_CURSES  	// OSX doesn't put borders on "help tags"  	// Draw a raised border around the edges of the window  	constexpr XYPOSITION border = 1.0f; @@ -292,7 +292,9 @@ PRectangle CallTip::CallTipStart(Sci::Position pos, Point pt, int textHeight, co  	rectDown = PRectangle(0,0,0,0);  	offsetMain = insetX;            // changed to right edge of any arrows  	lineHeight = static_cast<int>(std::lround(surfaceMeasure->Height(font.get()))); +#if !PLAT_CURSES  	widthArrow = lineHeight * 9 / 10; +#endif  	const int width = PaintContents(surfaceMeasure.get(), false) + insetX;  	// The returned | 
