mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
Fix sparkline rendering to only draw a single pixel base line
This commit is contained in:
parent
a2590ff060
commit
38d4f30c56
@ -233,7 +233,7 @@ static double get_y (GdkRectangle *cell_area,
|
||||
GValueArray *data,
|
||||
int index)
|
||||
{
|
||||
double baseline_y = cell_area->y + cell_area->height-1;
|
||||
double baseline_y = cell_area->y + cell_area->height;
|
||||
GValue *val = g_value_array_get_nth(data, index);
|
||||
return baseline_y - (cell_area->height * g_value_get_double(val));
|
||||
}
|
||||
|
@ -207,7 +207,7 @@ static double get_y (GtkAllocation *cell_area,
|
||||
GValueArray *data,
|
||||
int index)
|
||||
{
|
||||
double baseline_y = cell_area->height-1;
|
||||
double baseline_y = cell_area->height;
|
||||
GValue *val = g_value_array_get_nth(data, index);
|
||||
return baseline_y - ((cell_area->height-1) * g_value_get_double(val));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user