*The Cheat cries harder*

This commit is contained in:
XANTRONIX Development 2019-05-28 00:48:28 -05:00
parent 3917f128b8
commit 938cbc3550

View file

@ -164,12 +164,7 @@ static void draw_gauge_cluster_bg(hexagram_window *window,
cairo_surface_t *sfc; cairo_surface_t *sfc;
cairo_t *cr; cairo_t *cr;
Pixmap buf = window->bg; sfc = window->surface_bg;
Display *display = window->display;
int screen = window->screen;
sfc = cairo_xlib_surface_create(display, buf, DefaultVisual(display, screen), width, height);
cairo_xlib_surface_set_size(sfc, width, height);
cr = cairo_create(sfc); cr = cairo_create(sfc);
@ -231,13 +226,12 @@ static void update_gauge_cluster(cairo_t *cr,
int main(int argc, char **argv) { int main(int argc, char **argv) {
Display *display; Display *display;
Pixmap bg;
fd_set rfds, rready; fd_set rfds, rready;
hexagram_can_if *can_if; hexagram_can_if *can_if;
hexagram_window *window; hexagram_window *window;
int screen, fd, fd2, int fd, fd2,
width = 1024, width = 1024,
height = 480; height = 480;
@ -251,13 +245,10 @@ int main(int argc, char **argv) {
exit(1); exit(1);
display = window->display; display = window->display;
screen = window->screen;
fd = hexagram_can_if_fd(can_if); fd = hexagram_can_if_fd(can_if);
fd2 = hexagram_window_display_fd(window); fd2 = hexagram_window_display_fd(window);
bg = window->bg;
/* /*
* Draw the background layer * Draw the background layer
*/ */