All right. *pumping* Three...two...one...
This commit is contained in:
parent
120624377d
commit
0a67ae606c
1 changed files with 4 additions and 4 deletions
|
@ -151,7 +151,7 @@ int main(int argc, char **argv) {
|
||||||
};
|
};
|
||||||
|
|
||||||
cairo_surface_t *sfc;
|
cairo_surface_t *sfc;
|
||||||
cairo_t *ctx;
|
cairo_t *cr;
|
||||||
|
|
||||||
XEvent e;
|
XEvent e;
|
||||||
|
|
||||||
|
@ -169,9 +169,9 @@ int main(int argc, char **argv) {
|
||||||
sfc = cairo_xlib_surface_create(display, buf, DefaultVisual(display, screen), x, y);
|
sfc = cairo_xlib_surface_create(display, buf, DefaultVisual(display, screen), x, y);
|
||||||
cairo_xlib_surface_set_size(sfc, x, y);
|
cairo_xlib_surface_set_size(sfc, x, y);
|
||||||
|
|
||||||
ctx = cairo_create(sfc);
|
cr = cairo_create(sfc);
|
||||||
|
|
||||||
redraw(ctx);
|
redraw(cr);
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
XExposeEvent *expose;
|
XExposeEvent *expose;
|
||||||
|
@ -198,7 +198,7 @@ int main(int argc, char **argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
done:
|
done:
|
||||||
cairo_destroy(ctx);
|
cairo_destroy(cr);
|
||||||
|
|
||||||
cairo_surface_destroy(sfc);
|
cairo_surface_destroy(sfc);
|
||||||
XCloseDisplay(display);
|
XCloseDisplay(display);
|
||||||
|
|
Loading…
Add table
Reference in a new issue