mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Try and make work on Ubuntu 20 again.
This commit is contained in:
2
.github/workflows/ccpp.yml
vendored
2
.github/workflows/ccpp.yml
vendored
@@ -4,7 +4,7 @@ on: [push]
|
||||
|
||||
jobs:
|
||||
build-linux:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: apt
|
||||
|
||||
@@ -152,7 +152,7 @@ static void do_in_steps(double c1, double c2, double lo, double hi,
|
||||
}
|
||||
|
||||
static void draw_y_axis(Agg2D& painter, double x, double y1, double y2,
|
||||
double lo, double hi, double step, const char* format)
|
||||
double lo, double hi, double step, const std::string& format)
|
||||
{
|
||||
painter.noFill();
|
||||
painter.lineColor(0, 0, 0);
|
||||
@@ -164,12 +164,12 @@ static void draw_y_axis(Agg2D& painter, double x, double y1, double y2,
|
||||
{
|
||||
painter.line(x, y, x-5, y);
|
||||
painter.text(
|
||||
x-8, y+5.0, fmt::format(fmt::runtime(format), v));
|
||||
x-8, y+5.0, fmt::format(format, v));
|
||||
});
|
||||
}
|
||||
|
||||
static void draw_x_axis(Agg2D& painter, double x1, double x2, double y,
|
||||
double lo, double hi, double step, const char* format)
|
||||
double lo, double hi, double step, const std::string& format)
|
||||
{
|
||||
painter.noFill();
|
||||
painter.lineColor(0, 0, 0);
|
||||
@@ -181,7 +181,7 @@ static void draw_x_axis(Agg2D& painter, double x1, double x2, double y,
|
||||
{
|
||||
painter.line(x, y, x, y+5);
|
||||
painter.text(
|
||||
x, y+18, fmt::format(fmt::runtime(format), v));
|
||||
x, y+18, fmt::format(format, v));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user