Mercurial > dwindows
changeset 817:2d0681b8d8f6
Switched to using gdk_cairo_set_source_color() from the Cairo RGB function...
this fixes black and white rendering in several apps.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 26 Mar 2011 05:14:54 +0000 |
parents | 916002e29d4c |
children | c17634e2b303 |
files | gtk3/dw.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/gtk3/dw.c Sat Mar 26 05:03:40 2011 +0000 +++ b/gtk3/dw.c Sat Mar 26 05:14:54 2011 +0000 @@ -6598,7 +6598,7 @@ { int index = _find_thread_index(dw_thread_id()); - cairo_set_source_rgb(cr, _foreground[index].red, _foreground[index].green, _foreground[index].blue); + gdk_cairo_set_source_color (cr, &_foreground[index]); cairo_set_line_width(cr, 1); cairo_move_to(cr, x, y); cairo_stroke(cr); @@ -6630,7 +6630,7 @@ { int index = _find_thread_index(dw_thread_id()); - cairo_set_source_rgb(cr, _foreground[index].red, _foreground[index].green, _foreground[index].blue); + gdk_cairo_set_source_color (cr, &_foreground[index]); cairo_set_line_width(cr, 1); cairo_move_to(cr, x1, y1); cairo_line_to(cr, x2, y2); @@ -6664,7 +6664,7 @@ { int index = _find_thread_index(dw_thread_id()); - cairo_set_source_rgb(cr, _foreground[index].red, _foreground[index].green, _foreground[index].blue); + gdk_cairo_set_source_color (cr, &_foreground[index]); cairo_set_line_width(cr, 1); cairo_move_to(cr, x[0], y[0]); for(z=1;z<npoints;z++) @@ -6703,7 +6703,7 @@ { int index = _find_thread_index(dw_thread_id()); - cairo_set_source_rgb(cr, _foreground[index].red, _foreground[index].green, _foreground[index].blue); + gdk_cairo_set_source_color (cr, &_foreground[index]); cairo_set_line_width(cr, 1); cairo_move_to(cr, x, y); cairo_line_to(cr, x, y + height); @@ -6764,7 +6764,7 @@ pango_layout_set_font_description(layout, font); pango_layout_set_text(layout, text, strlen(text)); - cairo_set_source_rgb(cr, _foreground[index].red, _foreground[index].green, _foreground[index].blue); + gdk_cairo_set_source_color (cr, &_foreground[index]); cairo_move_to(cr, x, y); pango_cairo_show_layout (cr, layout);