visualizers: use double instead of float

To give us less changes of incorrect values when converting between scales
(at the cost of 2x the array size).
This commit is contained in:
Christian Hergert
2018-06-16 20:22:53 -07:00
parent c9c86ff37a
commit 50ccd73592
4 changed files with 15 additions and 15 deletions

View File

@ -27,8 +27,8 @@ typedef struct _PointCache PointCache;
typedef struct
{
gfloat x;
gfloat y;
gdouble x;
gdouble y;
} Point;
PointCache *point_cache_new (void);
@ -40,8 +40,8 @@ gboolean point_cache_contains_set (PointCache *self,
guint set_id);
void point_cache_add_point_to_set (PointCache *self,
guint set_id,
gfloat x,
gfloat y);
gdouble x,
gdouble y);
const Point *point_cache_get_points (PointCache *self,
guint set_id,
guint *n_points);