From: cmzmasek@gmail.com Date: Tue, 12 Feb 2013 00:34:23 +0000 (+0000) Subject: Apple Macintosh graphics are slow, turn off anti-alias. X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=575173234369a898f321845df1c12b2c83676a4a;p=jalview.git Apple Macintosh graphics are slow, turn off anti-alias. --- diff --git a/forester/java/src/org/forester/archaeopteryx/AptxUtil.java b/forester/java/src/org/forester/archaeopteryx/AptxUtil.java index 51f6477..60fea33 100644 --- a/forester/java/src/org/forester/archaeopteryx/AptxUtil.java +++ b/forester/java/src/org/forester/archaeopteryx/AptxUtil.java @@ -853,17 +853,6 @@ public final class AptxUtil { return true; } - final static boolean isJava15() { - try { - final String s = ForesterUtil.JAVA_VERSION; - return s.startsWith( "1.5" ); - } - catch ( final Exception e ) { - ForesterUtil.printWarningMessage( Constants.PRG_NAME, "minor error: " + e ); - return false; - } - } - final static boolean isMac() { try { final String s = ForesterUtil.OS_NAME.toLowerCase(); diff --git a/forester/java/src/org/forester/archaeopteryx/Configuration.java b/forester/java/src/org/forester/archaeopteryx/Configuration.java index 855ded5..b487a6d 100644 --- a/forester/java/src/org/forester/archaeopteryx/Configuration.java +++ b/forester/java/src/org/forester/archaeopteryx/Configuration.java @@ -734,6 +734,10 @@ public final class Configuration { } boolean isAntialiasScreen() { + if ( AptxUtil.isMac() ) { + // Apple Macintosh graphics are slow, turn off anti-alias. + return false; + } return _antialias_screen; } @@ -783,7 +787,7 @@ public final class Configuration { } final boolean isUseNativeUI() { - if ( ( _ui == UI.UNKNOWN ) && AptxUtil.isMac() && AptxUtil.isJava15() ) { + if ( ( _ui == UI.UNKNOWN ) && AptxUtil.isMac() ) { _ui = UI.NATIVE; } return _ui == UI.NATIVE; diff --git a/forester/java/src/org/forester/archaeopteryx/Options.java b/forester/java/src/org/forester/archaeopteryx/Options.java index a0c70f3..e90ae20 100644 --- a/forester/java/src/org/forester/archaeopteryx/Options.java +++ b/forester/java/src/org/forester/archaeopteryx/Options.java @@ -426,7 +426,7 @@ final public class Options { _show_branch_length_values = false; _internal_number_are_confidence_for_nh_parsing = false; _show_scale = false; - _antialias_screen = true; + _antialias_screen = false; _antialias_print = true; _graphics_export_visible_only = false; _editable = true;