[gcompris-devel] Small display bug

bruno bruno.coudoin at free.fr
Wed Feb 12 13:29:05 UTC 2003


I agree, it is the solution but the canvas item does not allow to save
in it 2 images. 
If we have to do it externally, it makes the programming more
complex/less intuitive.
What we should do is to create an extented canvas item that would
support that.

Have you a simple solution ?

Bruno.


Le mer 12/02/2003 à 21:54, pgeorges a écrit :
> I looked quickly to the code : if the count of enter/leave mouse events 
> is not reliable, why not keep 2 versions of the image, one clear, and 
> one darkened and swap between them ?
> That way, the worst case occurs when the displayed image does not 
> correspond to where the mouse is, which will be corrected when the mouse 
> moves again. So there won't be any too darkened image possibility.
> 
> Moreover this solution is less CPU intensive.
> 
> Pascal
> 
> bruno wrote:
> > Yes, I am aware of this issue. Unfortunatly, it is not easy to fix.
> > 
> > Let me describe what happens, is that the gnome canvas does not return
> > the proper number of enter/exit event when we click on a button.
> > You can trace the problem in gameutil:gcompris_item_event_focus
> > 
> > On my mandrake 9, to reproduce it, I have to click on a button while
> > moving the mouse out of the button (like drag&drop).
> > 
> > I tried several times to fix that without success.
> > 
> > There is probably a solution, help is welcome.
> > 
> > Bruno.
> > 
> > Le dim 09/02/2003 à 19:48, pgeorges a écrit :
> > 
> >>when entering and leaving many times the different board collections 
> >>using the home icon (bottom right), this icon gets darker and darker.
> >>I don't want to dig into code, but I suppose Bruno you've got the 
> >>solution :-)
> >>
> >>Note that I switched all wav files to ogg, making gcompris work better 
> >>with my current configuration (otherwise I missed some short sounds) ...
> >>
> >>Pascal
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> gcompris-devel mailing list
> gcompris-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gcompris-devel
> 






More information about the Gcompris-devel mailing list