Now THIS place knows how to invisibly treat a person, The Cheat!

This commit is contained in:
XANTRONIX Development 2019-06-07 18:33:18 -05:00
parent 09d33177ce
commit be52bdc014

View file

@ -97,7 +97,7 @@ static void draw_tachometer_needle(cairo_t *cr,
cairo_arc(cr, x, y, 0.08 * r, 0, 2*M_PI);
cairo_stroke(cr);
draw_needle(cr, x, y, 0.77 * r,
draw_needle(cr, x, y, 0.8 * r,
232 * (M_PI/180),
488 * (M_PI/180),
rpm / 8000);
@ -134,13 +134,6 @@ static void draw_tachometer(cairo_t *cr,
488 * (M_PI/180),
i / 80.0,
text);
draw_face_mark(cr, x, y,
0.7 * r,
0.8 * r,
232 * (M_PI/180),
488 * (M_PI/180),
i / 80.0);
}
for (i=0; i<=80; i++) {
@ -148,6 +141,14 @@ static void draw_tachometer(cairo_t *cr,
cairo_set_source_rgb(cr, 1, 0, 0);
}
if (i % 5 == 0) {
draw_face_mark(cr, x, y,
0.7 * r,
0.8 * r,
232 * (M_PI/180),
488 * (M_PI/180),
i / 80.0);
} else {
draw_face_mark(cr, x, y,
0.75 * r,
0.8 * r,
@ -156,6 +157,7 @@ static void draw_tachometer(cairo_t *cr,
i / 80.0);
}
}
}
static void draw_speedometer(cairo_t *cr,
double x,
@ -189,16 +191,15 @@ static void draw_speedometer(cairo_t *cr,
text);
}
for (i=0; i<=180; i+=10) {
for (i=0; i<=180; i+=2) {
if (i % 10 == 0) {
draw_face_mark(cr, x, y,
0.7 * r,
0.8 * r,
232 * (M_PI/180),
488 * (M_PI/180),
i / 180.0);
}
for (i=0; i<=180; i+=2) {
} else {
draw_face_mark(cr, x, y,
0.75 * r,
0.8 * r,
@ -207,6 +208,7 @@ static void draw_speedometer(cairo_t *cr,
i / 180.0);
}
}
}
static void draw_speedometer_needle(cairo_t *cr,
double x,
@ -224,7 +226,7 @@ static void draw_speedometer_needle(cairo_t *cr,
cairo_arc(cr, x, y, 0.08 * r, 0, 2*M_PI);
cairo_stroke(cr);
draw_needle(cr, x, y, 0.77 * r,
draw_needle(cr, x, y, 0.8 * r,
232 * (M_PI/180),
488 * (M_PI/180),
kph / 290);
@ -279,7 +281,7 @@ static void draw_thermometer_needle(cairo_t *cr,
cairo_arc(cr, x, y, 0.08 * r, 0, 2*M_PI);
cairo_stroke(cr);
draw_needle(cr, x, y, 0.77 * r,
draw_needle(cr, x, y, 0.8 * r,
300 * (M_PI/180),
420 * (M_PI/180),
temp / 260);
@ -330,7 +332,7 @@ static void draw_fuel_gauge_needle(cairo_t *cr,
cairo_arc(cr, x, y, 0.08 * r, 0, 2*M_PI);
cairo_stroke(cr);
draw_needle(cr, x, y, 0.77 * r,
draw_needle(cr, x, y, 0.8 * r,
300 * (M_PI/180),
420 * (M_PI/180),
level / 1.0);