From 58a60885f8d598acbfbf3d447352feaf72b2152d Mon Sep 17 00:00:00 2001 From: Vassiliy Kudryashov Date: Mon, 18 Feb 2013 17:13:19 +0400 Subject: [PATCH] Icon on gutter for two colors --- platform/util/src/com/intellij/util/ui/TwoColorsIcon.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/util/src/com/intellij/util/ui/TwoColorsIcon.java b/platform/util/src/com/intellij/util/ui/TwoColorsIcon.java index b75c9cc53dfc..ffdffb18aa93 100644 --- a/platform/util/src/com/intellij/util/ui/TwoColorsIcon.java +++ b/platform/util/src/com/intellij/util/ui/TwoColorsIcon.java @@ -36,8 +36,9 @@ public class TwoColorsIcon extends EmptyIcon { public void paintIcon(final Component component, final Graphics g, final int x, final int y) { final int w = getIconWidth(); final int h = getIconHeight(); + GraphicsUtil.setupAAPainting(g); g.setColor(myColor1); - g.fillPolygon(new int[]{x, x + w - 1, x}, new int[]{y, y, y + h - 1}, 3); + g.fillPolygon(new int[]{x, x + w, x}, new int[]{y, y, y + h}, 3); g.setColor(myColor2); g.fillPolygon(new int[]{x + w, x + w, x}, new int[]{y, y + h, y + h}, 3); }