Updated icon() example.

git-svn-id: file:///fltk/svn/fltk/trunk@197 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 1999-01-07 17:46:16 +00:00
parent 5ca8c1473d
commit 5f731445e7

View File

@ -302,12 +302,8 @@ use:
<ul><pre>
#include "icon.xbm"
Pixmap p = XCreatePixmapFromBitmapData(fl_display,
DefaultRootWindow(fl_display), icon_bits,
icon_width, icon_height,
BlackPixel(fl_display, DefaultScreen(fl_display)),
WhitePixel(fl_display, DefaultScreen(fl_display)),
DefaultDepth(fl_display, DefaultScreen(fl_display)))
Pixmap p = XCreateBitmapFromData(fl_display, DefaultRootWindow(fl_display),
icon_bits, icon_width, icon_height);
window->icon((char *)p);
</ul></pre>