mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 23:51:29 -07:00
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]
This commit is contained in:
@ -319,7 +319,7 @@ public class PuzzleApplet extends JApplet implements Runtime.CallJavaCB {
|
|||||||
case 3: gg.setClip(arg2, arg3, xarg1, xarg2); break;
|
case 3: gg.setClip(arg2, arg3, xarg1, xarg2); break;
|
||||||
case 4:
|
case 4:
|
||||||
if (arg2 == 0 && arg3 == 0) {
|
if (arg2 == 0 && arg3 == 0) {
|
||||||
gg.fillRect(0, 0, getWidth(), getHeight());
|
gg.setClip(0, 0, getWidth(), getHeight());
|
||||||
} else {
|
} else {
|
||||||
gg.setClip(arg2, arg3, getWidth()-2*arg2, getHeight()-2*arg3);
|
gg.setClip(arg2, arg3, getWidth()-2*arg2, getHeight()-2*arg3);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user