gdk_bitmap_create_from_data() prototype



Hi all,
Shouldn't the prototype to gdk_bitmap_create_from_data() accept a guchar
parameter, rather than a gchar (For the XBM data)?

Many (Most?) tools (bitmap, etc) write the XBM format as unsigned char,
which appears to be correct according to the info I could find about the
file specification.  However, this means that the XBM data that is passed
in to gdk_bitmap_create_from_data() needs to be casted (especially in C++
code)
(Remember that char, signed char, and unsigned char are treated as 3
distinct types by compilers)

Thoughts?
Ian




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]