mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-174258 Painting progress bars eats CPU
Fixed minor quality issues
This commit is contained in:
+2
-2
@@ -95,7 +95,7 @@ public class DarculaProgressBarUI extends BasicProgressBarUI {
|
||||
|
||||
BufferedImage pathTile = UIUtil.createImage(getPeriodLength(), barRectHeight, BufferedImage.TYPE_INT_ARGB);
|
||||
Graphics2D gpt = pathTile.createGraphics();
|
||||
GraphicsUtil.setupAAPainting(g);
|
||||
GraphicsUtil.setupAAPainting(gpt);
|
||||
gpt.setColor(new JBColor(Gray._165, Gray._88));
|
||||
gpt.fill(path);
|
||||
|
||||
@@ -105,7 +105,7 @@ public class DarculaProgressBarUI extends BasicProgressBarUI {
|
||||
|
||||
TexturePaint pathPaint =
|
||||
new TexturePaint(pathTile, new Rectangle2D.Double(
|
||||
getPeriodLength() - progressOffset,0, getPeriodLength(), barRectHeight));
|
||||
Math.rint(getPeriodLength() - progressOffset),0, getPeriodLength(), barRectHeight));
|
||||
pathPaintList.add(pathPaint);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user