- gcv.font = b->font.xfont->fid;
- XChangeGC(dpy, b->gc, GCForeground | GCBackground | GCFont, &gcv);
- XDrawImageString(dpy, b->drawable, b->gc, x, y, buf, len);
+ gcv.font = dc.font.xfont->fid;
+ XChangeGC(dpy, dc.gc, GCForeground | GCBackground | GCFont, &gcv);
+ XDrawString(dpy, dc.drawable, dc.gc, x, y, buf, len);
+ }
+ if(highlight) {
+ points[0].x = dc.x + 1;
+ points[0].y = dc.y + 1;
+ points[1].x = dc.w - 3;
+ points[1].y = 0;
+ points[2].x = 0;
+ points[2].y = dc.h - 3;
+ points[3].x = -(dc.w - 3);
+ points[3].y = 0;
+ points[4].x = 0;
+ points[4].y = -(dc.h - 3);
+ XDrawLines(dpy, dc.drawable, dc.gc, points, 5, CoordModePrevious);