chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cfc61c
)
Also, it's ugly to blank out pieces of the applet window in black.
author
Simon Tatham
<anakin@pobox.com>
Sat, 6 Nov 2010 18:14:42 +0000
(18:14 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Sat, 6 Nov 2010 18:14:42 +0000
(18:14 +0000)
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]
PuzzleApplet.java
patch
|
blob
|
history
diff --git
a/PuzzleApplet.java
b/PuzzleApplet.java
index 305bae015170c629fdd7a8891cf98202c1deae26..82fab7801113991ca8ecf32970f792851876d136 100644
(file)
--- 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);