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

[Gambas-bugtracker] Bug #2959: TerminalView $bBell gfx triggers while UseMouse


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

Bruce STEERS reported a new bug.

Summary
-------

TerminalView $bBell gfx triggers while UseMouse

Type             : Bug
Priority         : Medium
Gambas version   : Master
Product          : GUI components


Description
-----------

Line 552 of TerminalView.class  View_Draw()

  If $bBell Then Paint.FillRect(0, 0, Paint.W, Paint.H, Color.SetAlpha($hView.Foreground, 128))

It causes a problem when using mouse data.

For example.  try this in a terminal and then move the mouse...

dialog --title "my title" --tab-correct --erase-on-exit --fselect $HOME/ -1 -1

When moving the mouse the gfx changes like it does when raising bell.

My fix is this...

  If $bBell And If Not $bTermUseMouse Then Paint.FillRect(0, 0, Paint.W, Paint.H, Color.SetAlpha($hView.Foreground, 128))

Respects


System information
------------------

n/a


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