[maemo-developers] [maemo-developers] Bug in Maemo's version of GTK-2.6 (Please nokia-devs look into this)
From: Tapani Pälli tapani.palli at nokia.comDate: Tue Nov 8 09:53:28 EET 2005
- Previous message: [maemo-developers] Bug in Maemo's version of GTK-2.6 (Please nokia-devs look into this)
- Next message: [maemo-developers] Bug in Maemo's version of GTK-2.6 (Please nokia-devs look into this)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [maemo-developers] Bug in Maemo's version of GTK-2.6 (Please nokia-devs look into this)
- Next message: [maemo-developers] Bug in Maemo's version of GTK-2.6 (Please nokia-devs look into this)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]