Possibly it should read like this (haven't tried)
+void
+drawicon(const char *file, unsigned long col[ColLast]) {
+ Pixmap icon;
+ unsigned int x, iw, ih, ix, iy;
+ x = dc.x;
+ icon = XCreatePixmap(dpy, dc.drawable, 12, 12, 1);
+ XReadBitmapFile(dpy, dc.drawable, file, &iw, &ih, &icon, &ix, &iy);
+
+ XSetForeground(dpy, dc.gc, col[ColBG]);
+ XFillRectangle(dpy, dc.drawable, dc.gc, x, 0, iw, ih);
+
+ XSetForeground(dpy, dc.gc, col[ColFG]);
+ XSetBackground(dpy, dc.gc, col[ColBG]);
+ XCopyPlane(dpy, icon, dc.drawable, dc.gc, ix, iy, iw, ih, x, 0, 1);
+}
2008/10/21, Henry <[EMAIL PROTECTED]>:
> On Tue, 21 Oct 2008 08:04:43 +0200, Amit Uttamchandani <[EMAIL PROTECTED]>
> wrote:
>
>> On Tue, 21 Oct 2008 11:12:15 +0900
>> "Alexandr Gubanoff" <[EMAIL PROTECTED]> wrote:
>>
>>> Hi. I am very bad speak English.
>>> I make no big patch to display icons in dwm-bar.
>>>
>>
>> Hi,
>>
>> What is the font family and color scheme you are using there?
>>
>> Thanks,
>> Amit
>>
>
> Like to know that too. :)
>
>