<AWT Dev> Question about GtkLnF implementation

Damjan Jovanovic damjan.jov at gmail.com
Sat Jan 30 08:13:49 PST 2010


On Sat, Jan 30, 2010 at 5:43 PM, Clemens Eisserer <linuxhippy at gmail.com> wrote:
> Hi,
>
> I have a short question about the design of GtkLnF.
> Currently the gtk look and feel paints everything twice, to two
> different pixmaps and then reads back - which means two roundtrips.
> Has there been any technical reason why it paints to two different
> pixmap and not to a single one which simply has twice the size?
>
> Thanks, Clemens
>

The number of roundtrips isn't such a problem, the number is pixels
is. 2 NxM pixmaps have the same number of pixels in total as an Nx2M
or 2NxM pixmap, so little time is saved.

Anyway, when last I heard the solution to this was to subclass GDK
drawing functions so they draw with the alpha channel in the first
place, instead of the double drawing without alpha and then mixing
pixmaps to recover it. Anyone working on this?

Damjan



More information about the awt-dev mailing list