Bug 1

Summary: GLCanvas flickers when using repaint
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: coreAssignee: Sven Gothel <sgothel>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: 1   
Hardware: All   
OS: all   
Type: DEFECT SCM Refs:
Workaround: ---

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