And uh, let me get a crappy toy meal for my The Cheat here.
This commit is contained in:
parent
b850ddd289
commit
cf49448fad
1 changed files with 5 additions and 6 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue