Where's my space lobster?

This commit is contained in:
XANTRONIX Development 2019-05-26 10:33:58 -05:00
parent 09055fce09
commit 0cc5de99ac

View file

@ -91,8 +91,11 @@ static void draw_speedometer(cairo_t *cr,
cairo_stroke(cr);
}
static void draw_thermometer(cairo_t *cr) {
cairo_arc(cr, 442, 368, 64, 0, 360 * (M_PI/180));
static void draw_thermometer(cairo_t *cr,
double x,
double y,
double r) {
cairo_arc(cr, x, y, r, 0, 360 * (M_PI/180));
cairo_stroke(cr);
}
@ -141,7 +144,7 @@ static void redraw(cairo_t *cr) {
draw_tachometer(cr, 208, 240, 192);
draw_speedometer(cr, 816, 240, 192);
draw_thermometer(cr);
draw_thermometer(cr, 442, 368, 64);
draw_fuel_gauge(cr);
draw_mfd(cr, 432, 48, 160, 240);
}