From 8e5a23b9c8d3aa88fe21b4792b93c5da6f1aaa84 Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 6 Nov 2010 18:14:42 +0000 Subject: [PATCH] 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! :-) git-svn-id: svn://svn.tartarus.org/sgt/puzzles@9023 cda61777-01e9-0310-a592-d414129be87e --- PuzzleApplet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.11.0