From: Sven G. <sgo...@ja...> - 2000-08-30 22:21:58
|
Virgil Wall wrote: > > I have not spent much time investigating this, however I have been using > gl4java 2.3.1.1 and just recently switched to version 2.4.1.0. > After switching to 2.4.1.0 if I click with the mouse pointer rapidly in a > test app that is drawing an animation, I see a screen flash. The flash is > worse if the window is made larger. It's also easier to notice if the > window has a light colored background (a black background makes it hard to > detect). > > When I run the same test app under 2.3.1.1, no flash occurs. > > Anyone else noticed this behavior? > > (Note that my test application is a game, that's why I'm clicking rapidly. > Also, note that it doesn't matter if I have a mouseListener registered or > not) > > Thanks, > Virgil Wall > Dear Virgil, the classes GLCanvas (and therefor GLAnimCanvas) in the package gl4java.awt, adds itself as a mouselistener, to repaint if: mouseClicked ... So, if you use GLCanvas or (especially) GLAnimCanvas, just overwrite mouseClicked with a no operation implementation, or whatever you want to do. I made this as an easy solution for the incomplete window refresh, if an "own window" is used and it is shown again after hidden by another window. Yours, Sven -- mailto:sgo...@ja... www : http://www.jausoft.com ; pgp: http://www.jausoft.com/gpg/ voice : +49-521-2399440, +49-170-2115963; fax: +49-521-2399442 |