[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #3242: Highlighter issue


http://gambaswiki.org/bugtracker/edit?object=BUG.3242&from=L21haW4-

Comment #1 by Bruce STEERS:

I have tracked my issue down to line 1243 of TextEditor.class
https://gitlab.com/gambas/gambas/-/blob/master/comp/src/gb.form.editor/.src/TextEditor.class?ref_type=heads#L1243

The Color.Blend instruction.  If i do not use it and just set Color to $iBackground then my view looks okay.

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)  ' this line
  Endif
  Paint.FillRect(XX, YY, Paint.W - XX, H)
  Return


But I assume it is there for a reason.
Respects
BruceS



----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----

References:
[Gambas-bugtracker] Bug #3242: Highlighter issue<bugtracker@xxxxxxxxxxxxxx>