[PATCH] The background should not be cleared on update events but on system triggered paint events

Roman Kennke Roman.Kennke at Sun.COM
Fri Jun 12 14:46:46 PDT 2009


Hi Ingo,

you are right. But I don't think this is the solution. I tried this, and 
it made some apps work better and some other apps worse. I'm working on 
the exact same problem right now and hope to have it fixed next week. 
It's a bit complex...

Thanks, Roman

> # HG changeset patch
> # User Ingo Proetel <proetel at aicas.com>
> # Date 1244817881 -7200
> # Node ID 3adc0850deee8b16779b5940866c51d7a2354ef0
> # Parent  c2a4e0ecd46d06a22e22a318a200e914d3509d1e
> The background should not be cleared on update events but on system triggered paint events.
>
> diff -r c2a4e0ecd46d -r 3adc0850deee src/share/classes/sun/awt/peer/cacio/CacioComponentPeer.java
> --- a/src/share/classes/sun/awt/peer/cacio/CacioComponentPeer.java	Fri Jun 12 16:44:21 2009 +0200
> +++ b/src/share/classes/sun/awt/peer/cacio/CacioComponentPeer.java	Fri Jun 12 16:44:41 2009 +0200
> @@ -297,7 +297,7 @@
>          case PaintEvent.UPDATE:
>              update = true;
>          case PaintEvent.PAINT:
> -            paintArea.paint(getAWTComponent(), update);
> +            paintArea.paint(getAWTComponent(), !update);
>            break;
>          case MouseEvent.MOUSE_PRESSED:
>          case MouseEvent.MOUSE_RELEASED:
>   




More information about the caciocavallo-dev mailing list