diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/com/fourisland/fourpuzzle/window/ChoiceWindow.java | 2 | ||||
-rwxr-xr-x | src/com/fourisland/fourpuzzle/window/SystemGraphic.java | 3 |
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 @@ | |||
6 | package com.fourisland.fourpuzzle.window; | 6 | package com.fourisland.fourpuzzle.window; |
7 | 7 | ||
8 | import com.fourisland.fourpuzzle.util.ObjectLoader; | 8 | import com.fourisland.fourpuzzle.util.ObjectLoader; |
9 | import com.fourisland.fourpuzzle.window.Window.SystemArea; | ||
9 | import java.awt.Color; | 10 | import java.awt.Color; |
10 | import java.awt.Rectangle; | 11 | import java.awt.Rectangle; |
11 | import java.awt.image.BufferedImage; | 12 | import 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) |