[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gambas-bugtracker] Bug #3242: Highlighter issue
[Thread Prev] | [Thread Next]
- Subject: [Gambas-bugtracker] Bug #3242: Highlighter issue
- From: <bugtracker@xxxxxxxxxxxxxx>
- Date: Fri, 30 Oct 2026 10:45:12 GMT
- To: bsteers@xxxxxxxxx,bugtracker@xxxxxxxxxxxxxxxxxxxxxx
http://gambaswiki.org/bugtracker/edit?object=BUG.3242&from=L21haW4- Comment #4 by Bruce STEERS: I tried some things but nothing seems to change anything except stopping the DrawHighlightedText method from repainting the already painted background. This I think is the root of the problem. The main Background must only be painted once to support Alpha. It is okay to repaint it when the color is solid but when it has Alpha it gets thicker in color every time it's painted. I've tried making it work differently but any Paint fill seems to have a negative effect on the view. If I stop it re-painting any background at all like this..... PAINT_INCLUDE: If iBg = iLastBg Then Return iLastBg = iBg ' If iBg = Color.Default Then ' Paint.Background = $iBackground ' Else ' Paint.Background = Color.Blend(iBg, $iBackground, 0.1) ' Endif ' Paint.FillRect(XX, YY, Paint.W - XX, H) Return Then my document looks just fine. The Background was already painted elsewhere and has not been altered. I think that code RE-paints the already painted Colour over the existing. Maybe removing it breaks something else but from what i can see the benefit of removing it out weighs it's intended function by a ton. Could you maybe check to see if there are possibly any repeated Background FillRect that could be removed to support Alpha. Maybe the above PAINT_INCLUDE could ONLY paint something if it really needs to (ie for specific purposes like you mentioned) otherwise do nothing. Certainly in it's current state it does not support Alpha very well. My editor has a cool "glimmer" effect using a diagonal gradient filled background that shows through the document but only when there is some alpha. Attached is how it looks without that above code re-paining the line bg. As you saw in the first post video clip the lines being re-painted really messes things up. Respects BruceS ---------------------------------------------------------------------------- Attachment: Untitled.png ----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----
| [Gambas-bugtracker] Bug #3242: Highlighter issue | <bugtracker@xxxxxxxxxxxxxx> |