From c84805146d6a0d93a9a5c9dffff9e70a32d4ac86 Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Thu, 28 Dec 2017 17:54:54 -0800 Subject: [PATCH] ui.gadgets.charts.lines: Fix using list. Use ``SPECIALIZED-ARRAYS: float`` in order to create it if it doesnt exist. --- extra/ui/gadgets/charts/lines/lines.factor | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/extra/ui/gadgets/charts/lines/lines.factor b/extra/ui/gadgets/charts/lines/lines.factor index 9c39d494a6..40a7d654e5 100644 --- a/extra/ui/gadgets/charts/lines/lines.factor +++ b/extra/ui/gadgets/charts/lines/lines.factor @@ -2,13 +2,14 @@ ! See http://factorcode.org/license.txt for BSD license. USING: accessors arrays assocs binary-search colors.constants combinators combinators.short-circuit fry kernel locals make -math math.order math.statistics math.vectors namespaces opengl -opengl.gl sequences -specialized-arrays.instances.alien.c-types.float -splitting.monotonic ui.gadgets ui.gadgets.charts -ui.gadgets.charts.utils ui.render ; +math math.order math.statistics math.vectors opengl opengl.gl +sequences specialized-arrays splitting.monotonic ui.gadgets +ui.gadgets.charts ui.gadgets.charts.utils ui.render ; +QUALIFIED-WITH: alien.c-types c IN: ui.gadgets.charts.lines +SPECIALIZED-ARRAY: c:float + ! Data must be a sequence of { x y } coordinates sorted by ! non-descending x vaues. TUPLE: line < gadget color data ;