Bug 1 - GLCanvas flickers when using repaint
Summary: GLCanvas flickers when using repaint
Status: VERIFIED FIXED
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All all
: P3 normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2003-06-10 02:37 CEST by Sven Gothel
Modified: 2010-03-24 07:45 CET (History)
0 users

See Also:
Type: DEFECT
SCM Refs:
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2010-03-24 07:45:07 CET


---- Reported by pepijnve 2003-06-10 14:37:52 ----

update(Graphics g) in Canvas is implemented as
public void update(Graphics g) {
        g.clearRect(0, 0, width, height);
        paint(g);
}
Because GLCanvas does not override this method to skip the clearRect, the
GLCanvas flickers when using repaint to refresh the GLCanvas. Implementing update as
public void update(Graphics g) {
        paint(g);
}
fixes this problem



---- Additional Comments From kbr 2003-07-14 22:35:55 ----

Thanks for the patch; this has been fixed.




--- Bug imported by sgothel@jausoft.com 2010-03-24 07:45 EDT  ---

This bug was previously known as _bug_ 1 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=1