else if (color >= 0)
{
#if XFT
- XftDrawRect (d, &r->PixColors[color].c, x, y, w, h);
+ XftDrawRect (d, &r->pix_colors[color].c, x, y, w, h);
#else
- XSetForeground (d.display->display, TGC, r->PixColors[color]);
+ XSetForeground (d.display->display, TGC, r->pix_colors[color]);
XFillRectangle (d.display->display, d, TGC, x, y, w, h);
#endif
}
{
clear_rect (d, x, y, r->TermWin.fwidth * len, r->TermWin.fheight, bg);
- XSetForeground (d.display->display, TGC, r->PixColors[fg]);
+ XSetForeground (d.display->display, TGC, r->pix_colors[fg]);
while (len--)
{
int base = r->TermWin.fbase;
XGCValues v;
- v.foreground = r->PixColors[fg];
+ v.foreground = r->pix_colors[fg];
v.font = f->fid;
if (enc2b)
if (bg == Color_bg && !slow)
{
- v.background = r->PixColors[bg];
+ v.background = r->pix_colors[bg];
XChangeGC (d.display->display, TGC, GCForeground | GCBackground | GCFont, &v);
XDrawImageString16 (d.display->display, d, TGC, x, y + base, xc, len);
}
if (bg == Color_bg && !slow)
{
- v.background = r->PixColors[bg];
+ v.background = r->pix_colors[bg];
XChangeGC (d.display->display, TGC, GCForeground | GCBackground | GCFont, &v);
XDrawImageString (d.display->display, d, TGC, x, y + base, xc, len);
}
if (!slow && width == r->TermWin.fwidth && 0)
{
if (sizeof (text_t) == sizeof (FcChar16))
- XftDrawString16 (d, &r->PixColors[fg].c, f, x, y + r->TermWin.fbase, (const FcChar16 *)text, len);
+ XftDrawString16 (d, &r->pix_colors[fg].c, f, x, y + r->TermWin.fbase, (const FcChar16 *)text, len);
else
- XftDrawString32 (d, &r->PixColors[fg].c, f, x, y + r->TermWin.fbase, (const FcChar32 *)text, len);
+ XftDrawString32 (d, &r->pix_colors[fg].c, f, x, y + r->TermWin.fbase, (const FcChar32 *)text, len);
}
else
{
if (sizeof (text_t) == sizeof (FcChar16))
{
XftTextExtents16 (d.display->display, f, (const FcChar16 *)text, 1, &extents);
- XftDrawString16 (d, &r->PixColors[fg].c, f, x + extents.x + (fwidth - extents.width) / 2,
+ XftDrawString16 (d, &r->pix_colors[fg].c, f, x + extents.x + (fwidth - extents.width) / 2,
y + r->TermWin.fbase, (const FcChar16 *)text, 1);
}
else
{
XGlyphInfo extents;
XftTextExtents32 (d.display->display, f, (const FcChar32 *)text, 1, &extents);
- XftDrawString32 (d, &r->PixColors[fg].c, f, x + extents.x + (fwidth - extents.width) / 2,
+ XftDrawString32 (d, &r->pix_colors[fg].c, f, x + extents.x + (fwidth - extents.width) / 2,
y + r->TermWin.fbase, (const FcChar32 *)text, 1);
}
}
#include "../config.h" /* NECESSARY */
#include "rxvt.h" /* NECESSARY */
-#include "scrollbar-next.intpro" /* PROTOS for internal routines */
/*----------------------------------------------------------------------*/
#if defined(NEXT_SCROLLBAR)
gcvalue.graphics_exposures = False;
- gcvalue.foreground = PixColors[Color_Black];
+ gcvalue.foreground = pix_colors[Color_Black];
blackGC = XCreateGC (display->display, scrollBar.win,
GCForeground | GCGraphicsExposures, &gcvalue);
- gcvalue.foreground = PixColors[Color_White];
+ gcvalue.foreground = pix_colors[Color_White];
whiteGC = XCreateGC (display->display, scrollBar.win,
GCForeground | GCGraphicsExposures, &gcvalue);
xcol.green = 0xaaaa;
xcol.blue = 0xaeba;
//if (!rXAllocColor (&xcol, "light gray"))//TODO//D//
- xcol.pixel = PixColors[Color_AntiqueWhite];
+ xcol.pixel = pix_colors[Color_AntiqueWhite];
light = gcvalue.foreground = xcol.pixel;
grayGC = XCreateGC (display->display, scrollBar.win,
GCForeground | GCGraphicsExposures, &gcvalue);
xcol.green = 0x5555;
xcol.blue = 0x5144;
//if (!rXAllocColor (&xcol, "dark gray"))//TODO//D//
- xcol.pixel = PixColors[Color_Grey25];
+ xcol.pixel = pix_colors[Color_Grey25];
dark = gcvalue.foreground = xcol.pixel;
darkGC = XCreateGC (display->display, scrollBar.win,
GCForeground | GCGraphicsExposures, &gcvalue);
gcvalue.fill_style = FillOpaqueStippled;
gcvalue.stipple = stipple;
- /* XSetWindowBackground (display->display, scrollBar.win, PixColors[Color_Red]); */
+ /* XSetWindowBackground (display->display, scrollBar.win, pix_colors[Color_Red]); */
stippleGC = XCreateGC (display->display, scrollBar.win,
GCForeground | GCBackground | GCStipple