This is probably well known, BUT in the "GTK on Windows" version of Scintilla, INDIC_BOX is drawn with ugly artifacts (see attached png) - this is actually why I have been using the much more expensive INDIC_DIAGONAL. :(

But I am annoyed, and would like to use INDIC_BOX, so I made a test. The problem seems to be with drawing vertical lines UP or horizontal lines LEFT - lines with the exact same endpoints, but drawn in the opposite directions work perfectly.

Looking at the GDK [line-]drawing attributes being set in PlatGTK.cxx, everything appears to be as it should... I am left with

1) GDK code doesn't work - unlikely :)

2) GDK rendering on Win32 is broken, at least in this respect

3) ???

4) profit (just kidding)

If 2) is the case, might this have something to do with the Windows view of drawing, which says that lines bordering a rect on the RIGHT and BOTTOM actually are "included" in it (or something like that)?

In any case, Neil, would you be receptive to a new version (from me) of Indicator::Draw which reimplemented [at least] INDIC_BOX to work around this problem? And yes, it requires two more LineTo calls. :(

Or is this bogus rendering indeed limited only to "GDK on Windows" and so it is not worth fixing this narrow a special case? Or would the suggested "fix" break the behavior on other platforms?

Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com

PNG image

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to