libsysprof-analyze: use doubles for reference data

We only want to move to float for the internal 0..1 positions which are
used to draw to the screen (to reduce how much data we hold on to). But for
the data we need to calculate those 0..1 positions, we want better
precision for large numbers. Use double for all of those.
This commit is contained in:
Christian Hergert
2023-06-20 11:48:51 -07:00
parent 72d489f786
commit d0d19cff39
3 changed files with 33 additions and 28 deletions

View File

@ -47,7 +47,7 @@ sysprof_depth_layer_snapshot (GtkWidget *widget,
SysprofDepthLayer *self = (SysprofDepthLayer *)widget;
const SysprofXYSeriesValue *values;
guint n_values;
float min_x, max_x;
double min_x, max_x;
int line_width;
int width;
int height;