Updated icon() example.
git-svn-id: file:///fltk/svn/fltk/trunk@197 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
5ca8c1473d
commit
5f731445e7
@ -302,12 +302,8 @@ use:
|
|||||||
<ul><pre>
|
<ul><pre>
|
||||||
#include "icon.xbm"
|
#include "icon.xbm"
|
||||||
|
|
||||||
Pixmap p = XCreatePixmapFromBitmapData(fl_display,
|
Pixmap p = XCreateBitmapFromData(fl_display, DefaultRootWindow(fl_display),
|
||||||
DefaultRootWindow(fl_display), icon_bits,
|
icon_bits, icon_width, icon_height);
|
||||||
icon_width, icon_height,
|
|
||||||
BlackPixel(fl_display, DefaultScreen(fl_display)),
|
|
||||||
WhitePixel(fl_display, DefaultScreen(fl_display)),
|
|
||||||
DefaultDepth(fl_display, DefaultScreen(fl_display)))
|
|
||||||
|
|
||||||
window->icon((char *)p);
|
window->icon((char *)p);
|
||||||
</ul></pre>
|
</ul></pre>
|
||||||
|
Loading…
Reference in New Issue
Block a user