summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-02-08 17:26:31 -0500
committerStarla Insigna <hatkirby@fourisland.com>2009-02-08 17:26:31 -0500
commit97e37a935298bc6ea928acf101c56e1483e5db52 (patch)
tree4c0ef43f1ed025d79ad1af9e95b5004f49508fed /src
parent06192cc71f591e4770883b504fa68c09a8141520 (diff)
downloadfourpuzzle-97e37a935298bc6ea928acf101c56e1483e5db52.tar.gz
fourpuzzle-97e37a935298bc6ea928acf101c56e1483e5db52.tar.bz2
fourpuzzle-97e37a935298bc6ea928acf101c56e1483e5db52.zip
Fixed Window Selector background alignment
In ChoiceWindow, the background picture for the Selector windows wasn't positioned correctly.
Diffstat (limited to 'src')
-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)