And uh, let me get a crappy toy meal for my The Cheat here.

This commit is contained in:
XANTRONIX Development 2019-05-27 01:44:15 -05:00
parent b850ddd289
commit cf49448fad

View file

@ -203,13 +203,13 @@ int main(int argc, char **argv) {
Window win; Window win;
Pixmap buf; Pixmap buf;
GC gc; GC gc;
fd_set rfds, wfds, rready, wready; fd_set rfds, rready;
hexagram_can_if *can_if; hexagram_can_if *can_if;
int screen, fd, fd2, int screen, fd, fd2,
width = 1024, width = 480,
height = 480; height = 224;
XGCValues values = { XGCValues values = {
.foreground = 0x000000, .foreground = 0x000000,
@ -248,7 +248,7 @@ int main(int argc, char **argv) {
FD_SET(fd2, &rfds); FD_SET(fd2, &rfds);
while (1) { while (1) {
int nready, pending; int pending;
while ((pending = XPending(display)) != 0) { while ((pending = XPending(display)) != 0) {
XEvent e; XEvent e;
@ -291,12 +291,11 @@ int main(int argc, char **argv) {
draw_gauge_cluster(cr, &frame, 0, 0, width, height); draw_gauge_cluster(cr, &frame, 0, 0, width, height);
XCopyArea(display, buf, win, gc, 0, 0, XCopyArea(display, buf, win, gc, 0, 0,
1024, 480, width, height,
0, 0); 0, 0);
} }
} }
done:
cairo_destroy(cr); cairo_destroy(cr);
cairo_surface_destroy(sfc); cairo_surface_destroy(sfc);