summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/view/impl/StonePainter.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub/view/impl/StonePainter.java')
-rw-r--r--src/jrummikub/view/impl/StonePainter.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/jrummikub/view/impl/StonePainter.java b/src/jrummikub/view/impl/StonePainter.java
index bfa61ea..0812beb 100644
--- a/src/jrummikub/view/impl/StonePainter.java
+++ b/src/jrummikub/view/impl/StonePainter.java
@@ -64,9 +64,9 @@ class StonePainter {
}
private static Color hover(Color color) {
- int r = (int) (color.getRed() * HOVER_RATIO + 255 * (1-HOVER_RATIO));
- int g = (int) (color.getGreen() * HOVER_RATIO + 255 * (1-HOVER_RATIO));
- int b = (int) (color.getBlue() * HOVER_RATIO + 255 * (1-HOVER_RATIO));
+ int r = (int) (color.getRed() * HOVER_RATIO + 255 * (1 - HOVER_RATIO));
+ int g = (int) (color.getGreen() * HOVER_RATIO + 255 * (1 - HOVER_RATIO));
+ int b = (int) (color.getBlue() * HOVER_RATIO + 255 * (1 - HOVER_RATIO));
return new Color(r > 255 ? 255 : r, g > 255 ? 255 : g, b > 255 ? 255 : b);
}
@@ -327,7 +327,6 @@ class StonePainter {
*/
public void paintStone(Graphics2D g, Stone stone, Position p,
boolean selected, boolean hovered) {
- // Color background = selected ? SELECTED_COLOR : BACKGROUND_COLOR;
int width = getStoneWidth();
int height = getStoneHeight();
int x = (int) (p.getX() * width), y = (int) (p.getY() * height);