>
> There is a difference between fltk v1 and v2 in icon handling
>
> From ../fltk2/src/x11/run.cxx:
>
>       // FLTK2 uses the freedesktop.org new-style icons. This is an
>       // array of 32-bit unsigned values: w,h,(w*h)*argb, repeated
>

Thanks,

just for a test I've defined a array like this

static unsigned img[] = { 22, 22, 0xffffffff, .... };

window->icon((char*)img);

and it works.

>
> you might have to convert your icon into the correct format,
> or even better, provide a function that accepts any icon format
> and that sets the old pixmap and the new WM_ICON hint.
>

What a image file format (e.g. png, bmp,..) is this?
If this is not a standard image file format, did anyone have a code snippet how 
to convert any image file format to this array?

Thanks in advance


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to