gdk_bitmap_create_from_data() prototype
- From: Ian Britten <britten caris com>
- To: gtk-list gnome org
- Subject: gdk_bitmap_create_from_data() prototype
- Date: Wed, 25 Jul 2001 08:56:36 -0300
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]