Skip to content

Commit 9db9a4c

Browse files
hansonrhansonr
authored andcommitted
Graphics antialias done correctly; scrollbar fix for missing ()
1 parent fedc913 commit 9db9a4c

File tree

7 files changed

+6
-8
lines changed

7 files changed

+6
-8
lines changed
30 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20181121123334
1+
20181121131826
30 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20181121123334
1+
20181121131826
30 Bytes
Binary file not shown.

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,20 +98,18 @@ public JSGraphics2D(Object canvas) { // this must be Object, because we are
9898
*/
9999
{
100100
}
101-
// removed - caused blurriness 9/17/2018
102101
// // reduce antialiasing, thank you,
103102
// // http://www.rgraph.net/docs/howto-get-crisp-lines-with-no- antialias.html
104-
// having this set default TRUE gave extra lines around panels in Jalview
105-
setAntialias(false);
103+
setAntialias(true);
106104
}
107105

108106
public void setAntialias(boolean tf) {
109107
if (tf) {
110108
if (!isShifted)
111-
ctx.translate(-0.5, -0.5);
109+
ctx.translate(0.5, 0.5);
112110
} else {
113111
if (isShifted)
114-
ctx.translate(0.5, 0.5);
112+
ctx.translate(-0.5, -0.5);
115113
}
116114
// this is important if images are being drawn - test/TAPP6
117115
// see also http://vaughnroyko.com/state-of-nearest-neighbor-interpolation-in-canvas/

sources/net.sf.j2s.java.core/src/swingjs/jquery/jquery-ui-j2sslider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@
618618
},
619619

620620
_getPixelMouse : function(position, offsetHandle) {
621-
var offset = this.element.offset;
621+
var offset = this.element.offset();
622622
var p = (this.orientation === "horizontal" ?
623623
position.x
624624
- offset.left

0 commit comments

Comments
 (0)