Skip to content

Commit

Permalink
optimise
Browse files Browse the repository at this point in the history
  • Loading branch information
prsadhuk committed Jan 30, 2025
1 parent 2bb0869 commit 9aeda88
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -874,11 +874,10 @@ public void paintIcon(Component c, Graphics g, int x, int y) {
skin = xp.getSkin(c, backgroundPart);
skin.paintSkin(g, x, y,
getIconWidth(), getIconHeight(), backgroundState);
skin = xp.getSkin(c, part);
if (icon == null) {
skin = xp.getSkin(c, part);
skin.paintSkin(g, x + OFFSET, y + OFFSET, state);
} else {
skin = xp.getSkin(c, part);
skin.paintSkin(g, x - 3 * OFFSET, y + OFFSET, state);
}
}
Expand Down

0 comments on commit 9aeda88

Please sign in to comment.