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:
5d503a5
)
Fix an amusing cut-and-paste error in the Java drawing code which was
author
Simon Tatham
<anakin@pobox.com>
Tue, 5 Apr 2011 18:05:57 +0000
(18:05 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Tue, 5 Apr 2011 18:05:57 +0000
(18:05 +0000)
causing complete mis-draws - but only when the window was exactly the
right size!
[originally from svn r9146]
PuzzleApplet.java
patch
|
blob
|
history
diff --git
a/PuzzleApplet.java
b/PuzzleApplet.java
index 82fab7801113991ca8ecf32970f792851876d136..fcecffbbe8e75abd75b5ca4033931e4f261ff6bd 100644
(file)
--- 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);
}