File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ void on_composited_changed ( GdkScreen *screen,
187187 while (g_hash_table_iter_next (& it , NULL , & value ))
188188 {
189189 GromitPaintContext * context = value ;
190- cairo_set_antialias (context -> paint_ctx , data -> composited ? CAIRO_ANTIALIAS_DEFAULT : CAIRO_ANTIALIAS_NONE );
190+ cairo_set_antialias (context -> paint_ctx , data -> composited ? CAIRO_ANTIALIAS_SUBPIXEL : CAIRO_ANTIALIAS_NONE );
191191 }
192192
193193
Original file line number Diff line number Diff line change @@ -70,6 +70,8 @@ GromitPaintContext *paint_context_new (GromitData *data,
7070 gdk_cairo_set_source_rgba (context -> paint_ctx , paint_color );
7171 if (!data -> composited )
7272 cairo_set_antialias (context -> paint_ctx , CAIRO_ANTIALIAS_NONE );
73+ else
74+ cairo_set_antialias (context -> paint_ctx , CAIRO_ANTIALIAS_SUBPIXEL );
7375 cairo_set_line_width (context -> paint_ctx , width );
7476 cairo_set_line_cap (context -> paint_ctx , CAIRO_LINE_CAP_ROUND );
7577 cairo_set_line_join (context -> paint_ctx , CAIRO_LINE_JOIN_ROUND );
You can’t perform that action at this time.
0 commit comments