78 |
XFillRectangle(display, backstore, gc, x, y, cx, cy); \ |
XFillRectangle(display, backstore, gc, x, y, cx, cy); \ |
79 |
} |
} |
80 |
|
|
81 |
|
#define FILL_RECTANGLE_FAST(x,y,cx,cy)\ |
82 |
|
{ \ |
83 |
|
XFillRectangle(display, ownbackstore ? backstore : wnd, gc, x, y, cx, cy); \ |
84 |
|
} |
85 |
|
|
86 |
/* colour maps */ |
/* colour maps */ |
87 |
BOOL owncolmap = False; |
BOOL owncolmap = False; |
88 |
static Colormap xcolmap; |
static Colormap xcolmap; |
1189 |
XSetStipple(display, gc, (Pixmap) glyph); |
XSetStipple(display, gc, (Pixmap) glyph); |
1190 |
XSetTSOrigin(display, gc, x, y); |
XSetTSOrigin(display, gc, x, y); |
1191 |
|
|
1192 |
if (ownbackstore) |
FILL_RECTANGLE_FAST(x, y, cx, cy); |
|
XFillRectangle(display, backstore, gc, x, y, cx, cy); |
|
|
else |
|
|
XFillRectangle(display, wnd, gc, x, y, cx, cy); |
|
1193 |
|
|
1194 |
XSetFillStyle(display, gc, FillSolid); |
XSetFillStyle(display, gc, FillSolid); |
1195 |
} |
} |
1241 |
|
|
1242 |
if (boxcx > 1) |
if (boxcx > 1) |
1243 |
{ |
{ |
1244 |
FILL_RECTANGLE(boxx, boxy, boxcx, boxcy); |
FILL_RECTANGLE_FAST(boxx, boxy, boxcx, boxcy); |
1245 |
} |
} |
1246 |
else if (mixmode == MIX_OPAQUE) |
else if (mixmode == MIX_OPAQUE) |
1247 |
{ |
{ |
1248 |
FILL_RECTANGLE(clipx, clipy, clipcx, clipcy); |
FILL_RECTANGLE_FAST(clipx, clipy, clipcx, clipcy); |
1249 |
} |
} |
1250 |
|
|
1251 |
/* Paint text, character by character */ |
/* Paint text, character by character */ |