ext Clemens Eisserer wrote:
>This is the code I used for testing:
> printf("\nDepth: %d", gdk_rgb_get_visual()->depth);
> GdkPixmap* pix = gdk_pixmap_new (NULL, 10, 10, 16);
> void* cm = gdk_drawable_get_colormap ((GdkDrawable *)pix);
> printf("\nIt returned with 16-bit depth: %d", cm);
> fflush(stdout);
>
> GdkPixmap* pix2 = gdk_pixmap_new (NULL, 10, 10, gdk_rgb_get_visual()->depth);
> void* cm2 = gdk_drawable_get_colormap ((GdkDrawable *)pix2);
> printf("\nIt returned with gdk_rgb_get_visual()->depth: %d\n", cm2);
> fflush(stdout);
>
>
Is it the gdk_rgb_get_visual()->depth which is returning wrong value for
you?
I noticed that in your code you are printing pointer to colormap
structure (returned from gdk_drawable_get_colormap) as integer assuming
that this would be the depth (?), this is uncorrect.
// Tapani
_______________________________________________
maemo-developers mailing list
[email protected]
https://maemo.org/mailman/listinfo/maemo-developers