summary refs log tree commit diff stats
path: root/src/com/fourisland
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/fourisland')
-rwxr-xr-xsrc/com/fourisland/fourpuzzle/window/ChoiceWindow.java2
-rwxr-xr-xsrc/com/fourisland/fourpuzzle/window/SystemGraphic.java3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/com/fourisland/fourpuzzle/window/ChoiceWindow.java b/src/com/fourisland/fourpuzzle/window/ChoiceWindow.java index 3b30acc..4754f67 100755 --- a/src/com/fourisland/fourpuzzle/window/ChoiceWindow.java +++ b/src/com/fourisland/fourpuzzle/window/ChoiceWindow.java
@@ -79,7 +79,7 @@ public class ChoiceWindow {
79 79
80 if (getSelected().equals(choice)) 80 if (getSelected().equals(choice))
81 { 81 {
82 g2.drawImage(SystemGraphic.getSelectionBackground(), tx, ty-fh, fw+SPACER-2, fh+SPACER-2, null); 82 g2.drawImage(SystemGraphic.getSelectionBackground(), tx-1, ty-fh+3, fw+SPACER-2, fh+SPACER-2, null);
83 g2.drawImage(Window.Selector.getImage(fw-Window.Selector.getLeftX(), fh-Window.Selector.getTopY()), tx-SPACER, ty-fh, null); 83 g2.drawImage(Window.Selector.getImage(fw-Window.Selector.getLeftX(), fh-Window.Selector.getTopY()), tx-SPACER, ty-fh, null);
84 } 84 }
85 85
diff --git a/src/com/fourisland/fourpuzzle/window/SystemGraphic.java b/src/com/fourisland/fourpuzzle/window/SystemGraphic.java index 24e0104..99941d9 100755 --- a/src/com/fourisland/fourpuzzle/window/SystemGraphic.java +++ b/src/com/fourisland/fourpuzzle/window/SystemGraphic.java
@@ -6,6 +6,7 @@
6package com.fourisland.fourpuzzle.window; 6package com.fourisland.fourpuzzle.window;
7 7
8import com.fourisland.fourpuzzle.util.ObjectLoader; 8import com.fourisland.fourpuzzle.util.ObjectLoader;
9import com.fourisland.fourpuzzle.window.Window.SystemArea;
9import java.awt.Color; 10import java.awt.Color;
10import java.awt.Rectangle; 11import java.awt.Rectangle;
11import java.awt.image.BufferedImage; 12import java.awt.image.BufferedImage;
@@ -35,7 +36,7 @@ public class SystemGraphic {
35 36
36 public static BufferedImage getSelectionBackground() 37 public static BufferedImage getSelectionBackground()
37 { 38 {
38 return systemGraphic.getSubimage(79, 15, 1, 1); 39 return systemGraphic.getSubimage(Window.Selector.getX(SystemArea.TOP_LEFT)+15, 15, 1, 1);
39 } 40 }
40 41
41 public static BufferedImage getChoiceArea(Rectangle sca) 42 public static BufferedImage getChoiceArea(Rectangle sca)