Skip to content

Commit

Permalink
Merge pull request #884 from eirikbakke/NETBEANS-1261
Browse files Browse the repository at this point in the history
[NETBEANS-1261] Avoid a rendering artifact under Aqua tabs on Retina
  • Loading branch information
matthiasblaesing committed Sep 21, 2018
2 parents 1096783 + 749e032 commit ca9a058
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,9 @@ public Polygon getInteriorPolygon(Component c) {
//just a plain rectangle
p.addPoint(x, y + ins.top);
p.addPoint(x + width, y + ins.top);
p.addPoint(x + width, y + height - 1);
p.addPoint(x, y + height - 1);
// NETBEANS-1261: Don't subtract 1 from the Y coordinates here.
p.addPoint(x + width, y + height);
p.addPoint(x, y + height);
return p;
}

Expand Down Expand Up @@ -309,8 +310,9 @@ public Polygon getInteriorPolygon(Component c) {
//just a plain rectangle
p.addPoint(x, y + ins.top);
p.addPoint(x + width, y + ins.top);
p.addPoint(x + width, y + height - 1);
p.addPoint(x, y + height - 1);
// NETBEANS-1261: Don't subtract 1 from the Y coordinates here.
p.addPoint(x + width, y + height);
p.addPoint(x, y + height);
return p;
}

Expand Down Expand Up @@ -396,8 +398,9 @@ public Polygon getInteriorPolygon(Component c) {
//just a plain rectangle
p.addPoint(x, y + ins.top);
p.addPoint(x + width, y + ins.top);
p.addPoint(x + width, y + height - 1);
p.addPoint(x, y + height - 1);
// NETBEANS-1261: Don't subtract 1 from the Y coordinates here.
p.addPoint(x + width, y + height);
p.addPoint(x, y + height);
return p;
}

Expand Down

0 comments on commit ca9a058

Please sign in to comment.