From 924a5425d13675ff514d8c57a64b8c32b1ff5472 Mon Sep 17 00:00:00 2001 From: anthonyurena Date: Tue, 8 Apr 2014 14:05:58 -0400 Subject: [PATCH] fixed ByteBuffer management this should be (.position 0) to ensure the buffer is at the beginning --- src/play_clj/core_utils.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/play_clj/core_utils.clj b/src/play_clj/core_utils.clj index 5fa3c1d..c5d4ebd 100644 --- a/src/play_clj/core_utils.clj +++ b/src/play_clj/core_utils.clj @@ -21,7 +21,7 @@ specified path. (doto pixels (.clear) (.put pixel-data) - (.position)) + (.position 0)) pic)) ([path] (let [pic (screenshot!)