# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1301116494 0 # Node ID 2d0681b8d8f60e71b01f352e0524f22cc28acf02 # Parent 916002e29d4cb54a40367066386c23208c438ec5 Switched to using gdk_cairo_set_source_color() from the Cairo RGB function... this fixes black and white rendering in several apps. diff -r 916002e29d4c -r 2d0681b8d8f6 gtk3/dw.c --- 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