From f2d4f26aa7bc1edd722bee00bbed6aa1dd8c2089 Mon Sep 17 00:00:00 2001 From: Roland Sadowski Date: Sat, 19 Sep 2009 21:21:38 +0200 Subject: [PATCH] Fix: wrong handling of mode parameter to applet size --- src/rosado/processing/applet.clj | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/rosado/processing/applet.clj b/src/rosado/processing/applet.clj index 706bea5..a9af567 100644 --- a/src/rosado/processing/applet.clj +++ b/src/rosado/processing/applet.clj @@ -35,6 +35,10 @@ (update-proxy prx# ~methods) prx#)))) +(def #^{:private true} + modes {:JAVA2D JAVA2D :OPENGL OPENGL + :P3D P3D :P2D P2D :PDF PDF}) + (defn run "Launches the applet. If given the flag :interactive, it won't exit on clicking the close button - it will only dispose the window." @@ -43,7 +47,7 @@ (let [m (.meta applet) [width height & mode] (or (:size m) [200 200]) mode (if-let [kw (first mode)] - (tosymb kw) + (modes (-> kw name toupper keyword)) JAVA2D) close-op (if (first interactive?) JFrame/DISPOSE_ON_CLOSE