summary refs log tree commit diff stats
path: root/src/com/fourisland/fourpuzzle/window/Window.java
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-02-10 16:02:28 -0500
committerStarla Insigna <hatkirby@fourisland.com>2009-02-10 16:02:28 -0500
commit9529954ca65660e976f12ed0a3f81e880581fee7 (patch)
treece7567248b40cdf9f37e10f6aa032cfadf251051 /src/com/fourisland/fourpuzzle/window/Window.java
parent11651c651b6472ca4130484063c220a800cca587 (diff)
downloadfourpuzzle-9529954ca65660e976f12ed0a3f81e880581fee7.tar.gz
fourpuzzle-9529954ca65660e976f12ed0a3f81e880581fee7.tar.bz2
fourpuzzle-9529954ca65660e976f12ed0a3f81e880581fee7.zip
Engine: Tweaked Window background positioning
Refs #5
Diffstat (limited to 'src/com/fourisland/fourpuzzle/window/Window.java')
-rw-r--r--src/com/fourisland/fourpuzzle/window/Window.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/com/fourisland/fourpuzzle/window/Window.java b/src/com/fourisland/fourpuzzle/window/Window.java index da3216a..f970b68 100644 --- a/src/com/fourisland/fourpuzzle/window/Window.java +++ b/src/com/fourisland/fourpuzzle/window/Window.java
@@ -46,7 +46,12 @@ public enum Window
46 46
47 protected BufferedImage getBackground() 47 protected BufferedImage getBackground()
48 { 48 {
49 return SystemGraphic.getSelectionBackground(); 49 if (in.isElapsed())
50 {
51 isFlashing = !isFlashing;
52 }
53
54 return SystemGraphic.getSelectionBackground(isFlashing);
50 } 55 }
51 }; 56 };
52 57
@@ -132,7 +137,7 @@ public enum Window
132 BufferedImage temp = new BufferedImage(getFullWidth(width), getFullHeight(height), BufferedImage.TYPE_INT_ARGB); 137 BufferedImage temp = new BufferedImage(getFullWidth(width), getFullHeight(height), BufferedImage.TYPE_INT_ARGB);
133 Graphics2D g = temp.createGraphics(); 138 Graphics2D g = temp.createGraphics();
134 139
135 g.drawImage(getBackground(), 1, 1, getFullWidth(width)-2, getFullHeight(height)-2, null); 140 g.drawImage(getBackground(), 3, 3, getFullWidth(width)-6, getFullHeight(height)-6, null);
136 141
137 g.drawImage(SystemGraphic.getChoiceArea(getBounds(SystemArea.TOP_LEFT)), 0, 0, null); 142 g.drawImage(SystemGraphic.getChoiceArea(getBounds(SystemArea.TOP_LEFT)), 0, 0, null);
138 g.drawImage(SystemGraphic.getChoiceArea(getBounds(SystemArea.TOP)), getWidth(SystemArea.TOP_LEFT), 0, width, getHeight(SystemArea.TOP), null); 143 g.drawImage(SystemGraphic.getChoiceArea(getBounds(SystemArea.TOP)), getWidth(SystemArea.TOP_LEFT), 0, width, getHeight(SystemArea.TOP), null);