changeset 183:a43e3c9b007e

Enable antialiasing and OpenGL acceleration.
author Mikhail Kryshen <mikhail@kryshen.net>
date Tue, 07 Nov 2017 02:07:11 +0300
parents fefcd73386c2
children 292d885a5a7b
files project.clj src/indyvon/core.clj
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/project.clj	Tue Dec 01 19:31:17 2015 +0300
+++ b/project.clj	Tue Nov 07 02:07:11 2017 +0300
@@ -7,4 +7,5 @@
   :profiles {:demo {:main indyvon.demo}}
   :aliases {"run-demo" ["with-profile" "demo" "run"]}
   :dependencies [[org.clojure/clojure "1.7.0"]
-                 [com.google.guava/guava "18.0"]])
+                 [com.google.guava/guava "18.0"]]
+  :jvm-opts ^:replace ["-Dsun.java2d.opengl=true"])
--- a/src/indyvon/core.clj	Tue Dec 01 19:31:17 2015 +0300
+++ b/src/indyvon/core.clj	Tue Nov 07 02:07:11 2017 +0300
@@ -1,5 +1,5 @@
 ;;
-;; Copyright 2010-2015 Mikhail Kryshen <mikhail@kryshen.net>
+;; Copyright 2010-2017 Mikhail Kryshen <mikhail@kryshen.net>
 ;;
 ;; This file is part of Indyvon.
 ;;
@@ -899,6 +899,8 @@
 (def ^:private default-rendering-hints
   {RenderingHints/KEY_TEXT_ANTIALIASING
    RenderingHints/VALUE_TEXT_ANTIALIAS_DEFAULT,
+   RenderingHints/KEY_ANTIALIASING
+   RenderingHints/VALUE_ANTIALIAS_ON,
    RenderingHints/KEY_FRACTIONALMETRICS
    RenderingHints/VALUE_FRACTIONALMETRICS_DEFAULT})