diff options
| author | Simon Tatham <anakin@pobox.com> | 2010-11-06 18:14:42 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2010-11-06 18:14:42 +0000 |
| commit | cca76ce6dc20a6da6697f6d9549cc0fb86e8b487 (patch) | |
| tree | 28201ec320f52e043691eef1f54f741d0795be2d /PuzzleApplet.java | |
| parent | 9cfc61c5f7f64ed382e946a2c69d6857eb494590 (diff) | |
| download | puzzles-cca76ce6dc20a6da6697f6d9549cc0fb86e8b487.zip puzzles-cca76ce6dc20a6da6697f6d9549cc0fb86e8b487.tar.gz puzzles-cca76ce6dc20a6da6697f6d9549cc0fb86e8b487.tar.bz2 puzzles-cca76ce6dc20a6da6697f6d9549cc0fb86e8b487.tar.xz | |
Also, it's ugly to blank out pieces of the applet window in black.
Use the puzzle background colour, like the GTK front end does.
(I know that renders the effect of the previous commit invisible,
but it's the principle of the thing! :-)
[originally from svn r9023]
Diffstat (limited to 'PuzzleApplet.java')
| -rw-r--r-- | PuzzleApplet.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PuzzleApplet.java b/PuzzleApplet.java index 305bae0..82fab78 100644 --- a/PuzzleApplet.java +++ b/PuzzleApplet.java @@ -307,7 +307,7 @@ public class PuzzleApplet extends JApplet implements Runtime.CallJavaCB { int left = arg2, right = arg2 + xarg2; int top = arg3, bottom = arg3 + xarg3; int width = getWidth(), height = getHeight(); - gg.setColor(Color.black); + gg.setColor(colors != null ? colors[0] : Color.black); gg.fillRect(0, 0, left, height); gg.fillRect(right, 0, width-right, height); gg.fillRect(0, 0, width, top); |