/[antiright]/antiright/lib/drawing.c
ViewVC logotype

Diff of /antiright/lib/drawing.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by jefbed, Wed Jun 1 22:06:43 2005 UTC revision 1.5 by jefbed, Sat Jun 18 01:59:08 2005 UTC
# Line 56  antiright_drawing_finish(struct antirigh Line 56  antiright_drawing_finish(struct antirigh
56  }  }
57    
58  void  void
59  antiright_draw_point(struct antiright_drawing_strcuture *drawing,  antiright_draw_point(struct antiright_drawing_structure *drawing,
60                       int x, int y)                       int x, int y)
61  {  {
62    XDrawPoint(XDRAWP, x, y);    XDrawPoint(XDRAWP, x, y);
# Line 148  antiright_draw_foreground(struct antirig Line 148  antiright_draw_foreground(struct antirig
148    antiright_draw_allocate_color(drawing, &color);    antiright_draw_allocate_color(drawing, &color);
149    XSetForeground(drawing->display, drawing->gc, color.pixel);    XSetForeground(drawing->display, drawing->gc, color.pixel);
150  }  }
151    void
152    antiright_draw_background(struct antiright_drawing_structure *drawing,
153                              int red_int, int green_int, int blue_int)
154    {
155      XColor color;
156      antiright_multiply_colors(&color, red_int, green_int, blue_int);
157      antiright_draw_allocate_color(drawing, &color);
158      XSetBackground(drawing->display, drawing->gc, color.pixel);
159    }
160    
161    void
162    antiright_widget_background(Widget widget,
163                                int red_int, int green_int, int blue_int)
164    {
165      XColor color;
166      struct antiright_drawing_structure drawing;
167      antiright_drawing_initialize(widget, &drawing);
168      antiright_multiply_colors(&color, red_int, green_int, blue_int);
169      antiright_draw_allocate_color(&drawing, &color);
170      XtVaSetValues(antiright.graph.widget,
171                    XmNbackground, color.pixel,
172                    NULL);
173    }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26