> I'm using markers to set the background of the lines in a specific color depending on
> the revision of the line. The problem is that I don't get a continuous block, but every
> line has some kind of a border and it is very ugly and it is not what I want to achieve.
This appears to be a bug in the wxStyledTextCtrl platform code,
probably in the AlphaRectangle method. Running the following script in
SciTE produces a solid background shown in
http://scintilla.org/MarkerBackground.png
editor:MarkerDefine(5, SC_MARK_CIRCLE, 0)
editor:MarkerSetBack(5, 0x0000ff)
editor:MarkerSetAlpha(5, 64)
editor.MarginMaskN[1] = 0
for line = 5, 15 do
editor:MarkerAdd(line, 5)
end
Neil
> Index: src/stc/PlatWX.cpp
> ===================================================================
> --- src/stc/PlatWX.cpp (revision 69813)
> +++ src/stc/PlatWX.cpp (working copy)
> @@ -380,7 +380,7 @@
> wxGCDC dc(*(wxMemoryDC*)hdc);
> wxColour penColour(wxColourFromCAandAlpha(outline, alphaOutline));
> wxColour brushColour(wxColourFromCAandAlpha(fill, alphaFill));
> - dc.SetPen(wxPen(penColour));
> + dc.SetPen(*wxTRANSPARENT_PEN);
> dc.SetBrush(wxBrush(brushColour));
> dc.DrawRoundedRectangle(wxRectFromPRectangle(rc), cornerSize);
> return;
Do I have to report this problem to the wx devs or this is something
that should be fixed in Scintilla?
Best regards,
Teodor
> Do I have to report this problem to the wx devs or this is something that
> should be fixed in Scintilla?
This is in wx and should be reported to its maintainers.
Neil