aboutsummaryrefslogtreecommitdiff
path: root/PuzzleApplet.java
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2011-04-05 18:05:57 +0000
committerSimon Tatham <anakin@pobox.com>2011-04-05 18:05:57 +0000
commite9b858971075c835ba888a7649621e22bc2c4542 (patch)
tree68ca1a9e0343a08ac8662d48f1e69249b230d910 /PuzzleApplet.java
parent5d503a52db029434cd354e04a0c6adbd2081fefa (diff)
downloadpuzzles-e9b858971075c835ba888a7649621e22bc2c4542.zip
puzzles-e9b858971075c835ba888a7649621e22bc2c4542.tar.gz
puzzles-e9b858971075c835ba888a7649621e22bc2c4542.tar.bz2
puzzles-e9b858971075c835ba888a7649621e22bc2c4542.tar.xz
Fix an amusing cut-and-paste error in the Java drawing code which was
causing complete mis-draws - but only when the window was exactly the right size! [originally from svn r9146]
Diffstat (limited to '')
-rw-r--r--PuzzleApplet.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/PuzzleApplet.java b/PuzzleApplet.java
index 82fab78..fcecffb 100644
--- a/PuzzleApplet.java
+++ b/PuzzleApplet.java
@@ -319,7 +319,7 @@ public class PuzzleApplet extends JApplet implements Runtime.CallJavaCB {
case 3: gg.setClip(arg2, arg3, xarg1, xarg2); break;
case 4:
if (arg2 == 0 && arg3 == 0) {
- gg.fillRect(0, 0, getWidth(), getHeight());
+ gg.setClip(0, 0, getWidth(), getHeight());
} else {
gg.setClip(arg2, arg3, getWidth()-2*arg2, getHeight()-2*arg3);
}