On Sun, 06 Nov 2005 12:28:11 +0100
dannym <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Am Sonntag, den 06.11.2005, 12:22 +0100 schrieb Mattias Gaertner:
> > On Sun, 06 Nov 2005 12:01:52 +0100
> > dannym <[EMAIL PROTECTED]> wrote:
> >
> > > patch attached.
> > >
> > > [...]
> > > > gdkimage bpp is _bytes_ per pixel.
> > > >
> > > > In the lcl it is compared with a value that is _bits_ per pixel.
> >
> > Because here it is bits per pixel. For example: 32.
> > It seems the bpp meaning vary. We have to find out, when it is what.
>
> I see...
>
> very weird.
>
> Both the gtk 1.2 docs
> http://developer.gnome.org/doc/API/gdk/gdk-images.html#GDKIMAGE , and
> the gtk 2.6.2 docs
> http://www.gtk.org/api/2.6/gdk/gdk-Images.html#GdkImage state:
>
> guint16 bpp; /* read only. bytes per pixel */
>
> What version do you have ? Can you check the docs in your gtk version's
> source tarball?
I know, that the docs say it *should* be bytesperpixel.
And it often is. See other places in the gtk interface.
Just google and you will find other people with the same weird behaviour. I
hope these problems are fixed gtk2.
I added a simple heuristic.
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives