75 color.blue = blue * 257; |
75 color.blue = blue * 257; |
76 gdk_gc_set_rgb_fg_color(gr->gc, &color); |
76 gdk_gc_set_rgb_fg_color(gr->gc, &color); |
77 //gdk_gc_set_rgb_bg_color(g->gc, &color); |
77 //gdk_gc_set_rgb_bg_color(g->gc, &color); |
78 } |
78 } |
79 |
79 |
|
80 void ui_draw_line(UiGraphics *g, int x1, int y1, int x2, int y2) { |
|
81 UiGdkGraphics *gr = (UiGdkGraphics*)g; |
|
82 gdk_draw_line(gr->widget->window, gr->gc, x1, y1, x2, y2); |
|
83 } |
80 |
84 |
81 void ui_draw_rect(UiGraphics *g, int x, int y, int w, int h, int fill) { |
85 void ui_draw_rect(UiGraphics *g, int x, int y, int w, int h, int fill) { |
82 UiGdkGraphics *gr = (UiGdkGraphics*)g; |
86 UiGdkGraphics *gr = (UiGdkGraphics*)g; |
83 gdk_draw_rectangle(gr->widget->window, gr->gc, fill, x, y, w, h); |
87 gdk_draw_rectangle(gr->widget->window, gr->gc, fill, x, y, w, h); |
84 } |
88 } |