WCU->colors[i].inuse = FALSE;
WCU->gattr.color = 1;
-/* gdk_gc_set_background(GC, widget->w->style->white_gc);
- gdk_gc_set_foreground(GC, widget->w->style->black_gc);
-*/
WCU->gattr.width = 0;
WCU->gattr.mode = 0;
attrp[ai].u.i = width;
break;
case G_ATTRCURSOR:
-/* attrp[ai].u.t = (curcursori == -1) ? "default" : cursormap[curcursori].name;
-*/
attrp[ai].u.t = (curcursori == -1) ? "default" : "watch";
break;
case G_ATTRCOLOR:
else
gr.o.y = gp2.y, gr.c.y = gp1.y;
-/* if(!ISVISIBLE(gr))
- return 1;
-*/
-
pp1 = pdrawtopix(widget, gp1), pp2 = pdrawtopix(widget, gp2);
setgattr(widget, ap);
gdk_draw_line(widget->w->window, GC, pp1.x, pp1.y, pp2.x, pp2.y);
p.x = gr.o.x, gr.o.x = gr.c.x, gr.c.x = p.x;
if (gr.o.y > gr.c.y)
p.y = gr.o.y, gr.o.y = gr.c.y, gr.c.y = p.y;
-/* if(!ISVISIBLE(gr))
- return 1;
-*/
pr = rdrawtopix(widget, gr);
setgattr(widget, ap);
gr.c.x = min(gr.c.x, gpp[i].x);
gr.c.y = min(gr.c.y, gpp[i].y);
}
-/* if(!ISVISIBLE(gr))
- return 1;
-*/
if (gpn + 1 > Gppn) {
n = (((gpn + 1) + PPINCR - 1) / PPINCR) * PPINCR;
Gppp = Marraygrow(Gppp, (long) n * PPSIZE);
gr.o.x = gc.x - gs.x, gr.o.y = gc.y - gs.y;
gr.c.x = gc.x + gs.x, gr.c.y = gc.y + gs.y;
-/* if(!ISVISIBLE(gr))
- return 1;
-*/
pc = pdrawtopix(widget, gc), ps = sdrawtopix(widget, gs);
setgattr(widget, ap);
pr.c.x = po.x + w / 2, pr.c.y = po.y + h;
gr = rpixtodraw(widget, pr);
-/* if(!ISVISIBLE(gr))
- return 1;
-*/
-
for (i = 0; i < n; i++) {
switch (tlp[i].j) {
case 'l':
if (color != WCU->gattr.color) {
WCU->gattr.color = color;
- /*if (ap->mode == GDK_XOR) {
- gdk_gc_set_foreground (GC, widget->w->style->white_gc);
- }
- else {
- */
gdk_gc_set_foreground(GC, &WCU->colors[WCU->gattr.color].color);
- /* } */
-
-/* if (Gdepth == 1) {
- cp = &WCU->colors[color].color;
- intens = (0.3 * cp->blue + 0.59 * cp->red +
- 0.11 * cp->green) / 65535.0;
- pati = (intens <= 0.0625) ? 16 :
- -16.0 * (log (intens) / 2.7725887222);
- XSetTile (Gdisplay, GC, WCU->grays[pati]);
- }
-*/
}
mode = ap->mode;
if (mode != WCU->gattr.mode) {
WCU->gattr.mode = mode;
-/* XSetFunction (Gdisplay, GC, WCU->gattr.mode);
- if (mode == GDK_XOR)
- gdk_gc_set_foreground (GC, &WCU->colors[0].color);
- else
-*/
gdk_gc_set_foreground(GC, &WCU->colors[WCU->gattr.color].color);
}
width = ap->width;