Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
* - fix line thickness
Browse files Browse the repository at this point in the history
  • Loading branch information
Lains committed Jan 9, 2020
1 parent 77cd757 commit ff6f617
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Widgets/UI.vala
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,13 @@ namespace Rakugaki {
}

public void draws (Cairo.Context cr) {
cr.set_antialias (Cairo.Antialias.SUBPIXEL);
cr.set_fill_rule (Cairo.FillRule.EVEN_ODD);
cr.set_line_cap (Cairo.LineCap.ROUND);
cr.set_line_join (Cairo.LineJoin.ROUND);
foreach (var path in paths) {
if (path.is_halftone) {
cr.set_line_width (9);
foreach (var point in path.points.next) {
cr.rectangle (point.x, point.y, 1, 1);
cr.fill ();
Expand All @@ -286,6 +291,7 @@ namespace Rakugaki {
}
cr.stroke ();
} else {
cr.set_line_width (line_thickness);
Point first = path.points.first ().data;
cr.move_to (first.x, first.y);
foreach (var point in path.points.next) {
Expand Down

0 comments on commit ff6f617

Please sign in to comment.