diff options
Diffstat (limited to 'src/com/fourisland/fourpuzzle/window/ChoiceWindow.java')
-rwxr-xr-x | src/com/fourisland/fourpuzzle/window/ChoiceWindow.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/com/fourisland/fourpuzzle/window/ChoiceWindow.java b/src/com/fourisland/fourpuzzle/window/ChoiceWindow.java index 6a82c6a..bf193c1 100755 --- a/src/com/fourisland/fourpuzzle/window/ChoiceWindow.java +++ b/src/com/fourisland/fourpuzzle/window/ChoiceWindow.java | |||
@@ -5,7 +5,6 @@ | |||
5 | 5 | ||
6 | package com.fourisland.fourpuzzle.window; | 6 | package com.fourisland.fourpuzzle.window; |
7 | 7 | ||
8 | import com.fourisland.fourpuzzle.window.SystemGraphic; | ||
9 | import com.fourisland.fourpuzzle.Audio; | 8 | import com.fourisland.fourpuzzle.Audio; |
10 | import com.fourisland.fourpuzzle.database.Database; | 9 | import com.fourisland.fourpuzzle.database.Database; |
11 | import com.fourisland.fourpuzzle.database.Sound; | 10 | import com.fourisland.fourpuzzle.database.Sound; |
@@ -54,11 +53,7 @@ public class ChoiceWindow { | |||
54 | 53 | ||
55 | width += SPACER*2; | 54 | width += SPACER*2; |
56 | 55 | ||
57 | cacheBase = new BufferedImage(Window.Default.getFullWidth(width), Window.Default.getFullHeight(height), BufferedImage.TYPE_INT_ARGB); | 56 | cacheBase = Window.Default.getImage(width, height); |
58 | Graphics2D g2 = cacheBase.createGraphics(); | ||
59 | |||
60 | g2.drawImage(SystemGraphic.getMessageBackground(), 1, 1, Window.Default.getFullWidth(width)-2, Window.Default.getFullHeight(height)-2, null); | ||
61 | g2.drawImage(Window.Default.getImage(width, height), 0, 0, null); | ||
62 | } | 57 | } |
63 | 58 | ||
64 | public void render(Graphics2D g2, int x, int y) | 59 | public void render(Graphics2D g2, int x, int y) |
@@ -81,7 +76,6 @@ public class ChoiceWindow { | |||
81 | 76 | ||
82 | if (getSelected().equals(choice)) | 77 | if (getSelected().equals(choice)) |
83 | { | 78 | { |
84 | g2.drawImage(SystemGraphic.getSelectionBackground(), tx-1, ty-fh+3, fw+SPACER-2, fh+SPACER-2, null); | ||
85 | g2.drawImage(Window.Selector.getImage(fw-Window.Selector.getLeftX(), fh-Window.Selector.getTopY()), tx-SPACER, ty-fh, null); | 79 | g2.drawImage(Window.Selector.getImage(fw-Window.Selector.getLeftX(), fh-Window.Selector.getTopY()), tx-SPACER, ty-fh, null); |
86 | } | 80 | } |
87 | 81 | ||