Skip to content

Commit

Permalink
Correct top-left L-piece rendering
Browse files Browse the repository at this point in the history
Fix #6
  • Loading branch information
io7m committed Jul 13, 2016
1 parent fa056e5 commit c6e897b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,8 @@ private void drawEmbossedCornerNW(
this.poly.reset();
this.poly.addPoint(0, 0);
this.poly.addPoint(emboss_size, emboss_size);
this.poly.addPoint(thickness_of_horizontal + emboss_size, emboss_size);
this.poly.addPoint(thickness_of_horizontal + emboss_size, 0);
this.poly.addPoint(thickness_of_vertical + emboss_size, emboss_size);
this.poly.addPoint(thickness_of_vertical + emboss_size, 0);
graphics.fill(this.poly);

graphics.setPaint(bottom);
Expand Down Expand Up @@ -1010,14 +1010,14 @@ private void drawEmbossedL_NW(

graphics.translate(0, thickness_of_horizontal);
graphics.setPaint(left);
graphics.fillRect(0, 0, emboss_size, length - thickness_of_vertical);
graphics.fillRect(0, 0, emboss_size, length - thickness_of_horizontal);
graphics.setTransform(old_transform);

graphics.translate(
thickness_of_vertical - emboss_size,
thickness_of_horizontal);
graphics.setPaint(right);
graphics.fillRect(0, 0, emboss_size, length - thickness_of_vertical);
graphics.fillRect(0, 0, emboss_size, length - thickness_of_horizontal);
graphics.setTransform(old_transform);

/**
Expand Down

0 comments on commit c6e897b

Please sign in to comment.