*drive-thru whale* Sever your leg please. It's the greatest day.
This commit is contained in:
parent
9074f619b2
commit
43369263d8
1 changed files with 13 additions and 3 deletions
|
@ -248,6 +248,8 @@ int main(int argc, char **argv) {
|
|||
.graphics_exposures = 0
|
||||
};
|
||||
|
||||
XdbeSwapInfo swapinfo;
|
||||
|
||||
cairo_surface_t *sfc;
|
||||
cairo_t *cr;
|
||||
|
||||
|
@ -266,9 +268,15 @@ int main(int argc, char **argv) {
|
|||
fd2 = ConnectionNumber(display);
|
||||
|
||||
screen = DefaultScreen(display);
|
||||
win = XCreateSimpleWindow(display, DefaultRootWindow(display), 0, 0, width, height, 0, 0, 0);
|
||||
gc = XCreateGC(display, win, GCForeground | GCBackground | GCGraphicsExposures, &values);
|
||||
bg = XCreatePixmap(display, win, width, height, 24);
|
||||
|
||||
win = XCreateSimpleWindow(display, DefaultRootWindow(display), 0, 0, width, height, 0, 0, 0);
|
||||
buf = XdbeAllocateBackBufferName(display, win, XdbeUntouched);
|
||||
|
||||
swapinfo.swap_window = win;
|
||||
swapinfo.swap_action = XdbeUntouched;
|
||||
|
||||
gc = XCreateGC(display, win, GCForeground | GCBackground | GCGraphicsExposures, &values);
|
||||
bg = XCreatePixmap(display, win, width, height, 24);
|
||||
|
||||
/*
|
||||
* Draw the background layer
|
||||
|
@ -342,6 +350,8 @@ int main(int argc, char **argv) {
|
|||
0, 0);
|
||||
|
||||
update_gauge_cluster(cr, &frame, 0, 0, width, height);
|
||||
|
||||
XdbeSwapBuffers(display, &swapinfo, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue