*drive-thru whale* Steve, drive around to the seventh window.

This commit is contained in:
XANTRONIX Development 2019-05-28 00:54:05 -05:00
parent 5e23676de9
commit ffbce9b670

View file

@ -201,11 +201,11 @@ static void draw_gauge_cluster_bg(hexagram_window *window,
}
static void update_gauge_cluster(cairo_t *cr,
struct can_frame *frame,
double x,
double y,
double width,
double height) {
struct can_frame *frame,
double x,
double y,
double width,
double height) {
static double rpm = 0;
if (frame->can_id == 0x280) {
@ -232,7 +232,6 @@ int main(int argc, char **argv) {
width = 1024,
height = 480;
cairo_surface_t *sfc;
cairo_t *cr;
if ((can_if = hexagram_can_if_open("vcan0")) == NULL)
@ -256,9 +255,7 @@ int main(int argc, char **argv) {
/*
* Set up the foreground surface
*/
sfc = window->surface_fg;
cr = cairo_create(sfc);
cr = hexagram_window_create_fg_context(window);
/*
* Set up file descriptors to monitor
@ -314,10 +311,7 @@ int main(int argc, char **argv) {
}
}
cairo_destroy(cr);
cairo_surface_destroy(sfc);
XCloseDisplay(display);
hexagram_window_destroy(window);
return 0;
}