Mercurial > dwindows
changeset 1524:010e1d916ee7
Added DW_DRAW_NOAA support on GTK3 for both pixmaps and windows.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 31 Dec 2011 17:14:33 +0000 |
parents | 026c0b4d6ee9 |
children | 34ce887be578 |
files | gtk3/dw.c |
diffstat | 1 files changed, 12 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/gtk3/dw.c Sat Dec 31 17:04:51 2011 +0000 +++ b/gtk3/dw.c Sat Dec 31 17:14:33 2011 +0000 @@ -6922,8 +6922,11 @@ cr = cairo_create(pixmap->image); if(cr) { - GdkColor *foreground = pthread_getspecific(_dw_fg_color_key); - + GdkColor *foreground = pthread_getspecific(_dw_fg_color_key); + + if(flags & DW_DRAW_NOAA) + cairo_set_antialias(cr, CAIRO_ANTIALIAS_NONE); + gdk_cairo_set_source_color (cr, foreground); cairo_set_line_width(cr, 1); cairo_move_to(cr, x[0], y[0]); @@ -6972,6 +6975,9 @@ { GdkColor *foreground = pthread_getspecific(_dw_fg_color_key); + if(flags & DW_DRAW_NOAA) + cairo_set_antialias(cr, CAIRO_ANTIALIAS_NONE); + gdk_cairo_set_source_color (cr, foreground); cairo_set_line_width(cr, 1); cairo_move_to(cr, x, y); @@ -7028,7 +7034,10 @@ double a2 = atan2((y2-yorigin), (x2-xorigin)); int width = x2-x1; float scale = (float)(y2-y1)/(float)width; - + + if(flags & DW_DRAW_NOAA) + cairo_set_antialias(cr, CAIRO_ANTIALIAS_NONE); + gdk_cairo_set_source_color (cr, foreground); cairo_set_line_width(cr, 1); if(scale != 1.0)