Skip to content

Commit e1b0c1f

Browse files
hansonrhansonr
authored andcommitted
adds initial clip; not critical
1 parent b70b00c commit e1b0c1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sources/net.sf.j2s.java.core/src/swingjs/JSGraphics2D.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ public JSGraphics2D(Object canvas) { // this must be Object, because we are
124124
// // reduce antialiasing, thank you,
125125
// // http://www.rgraph.net/docs/howto-get-crisp-lines-with-no- antialias.html
126126
setAntialias(true);
127+
setClip(0, 0, width, height);
127128
}
128129

129130
public void setAntialias(boolean tf) {

0 commit comments

Comments
 (0)