8 isys_XSetForeground(runctx_p ct, Exp *exp, RefStor **prs)
16 rhs = exp->ex_Rhs->ex_Func(ct, exp->ex_Rhs, prs);
17 ts = getExpTmpData(ct, exp);
18 ts->ts_Int32 = XSetForeground(SaveDisplay,
19 hashLookup(rhs->gcid, HASH_GC),
21 return(&ts->ts_Int32);
25 isys_XSetBackground(runctx_p ct, Exp *exp, RefStor **prs)
33 rhs = exp->ex_Rhs->ex_Func(ct, exp->ex_Rhs, prs);
34 ts = getExpTmpData(ct, exp);
35 ts->ts_Int32 = XSetBackground(SaveDisplay,
36 hashLookup(rhs->gcid, HASH_GC),
38 return(&ts->ts_Int32);
42 #define COLORMAP DefaultColormap(SaveDisplay, DefaultScreen(SaveDisplay))
45 isys_XAllocColor(runctx_p ct, Exp *exp, RefStor **prs)
55 rhs = exp->ex_Rhs->ex_Func(ct, exp->ex_Rhs, prs);
56 ts = getExpTmpData(ct, exp);
60 ts->ts_Int32 = XAllocColor(SaveDisplay, COLORMAP, &color);
61 ts->ts_Int32 = color.pixel;
62 return(&ts->ts_Int32);
66 isys_XFreeColor(runctx_p ct, Exp *exp, RefStor **prs)
74 rhs = exp->ex_Rhs->ex_Func(ct, exp->ex_Rhs, prs);
75 ts = getExpTmpData(ct, exp);
77 ts->ts_Int32 = XFreeColors(SaveDisplay, COLORMAP, &pixel, 1, 0);
78 return(&ts->ts_Int32);