[Xcb-commit] xcb-demo
Vincent Torri
doursse at kemper.freedesktop.org
Mon May 1 14:45:25 PDT 2006
xcb-demo/tests/lissajoux.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
New commits:
diff-tree 312057c62b059f56c5042743584e3113db9855d6 (from 8095b4897c84179b17f93918011e296de1ee65fd)
Author: TORRI Vincent <torri at doursse.(none)>
Date: Mon May 1 23:45:00 2006 +0200
better leak fix in non shm mode
diff --git a/xcb-demo/tests/lissajoux.c b/xcb-demo/tests/lissajoux.c
index 49942ca..f8c8e91 100644
--- a/xcb-demo/tests/lissajoux.c
+++ b/xcb-demo/tests/lissajoux.c
@@ -110,7 +110,7 @@ step (Data *datap)
loop_count++;
t = get_time () - time_start;
- if (t <= 20.0)
+ if (t <= 2.0)
{
draw_lissajoux (datap);
}
@@ -119,9 +119,7 @@ step (Data *datap)
printf("FRAME COUNT..: %i frames\n", loop_count);
printf("TIME.........: %3.3f seconds\n", t);
printf("AVERAGE FPS..: %3.3f fps\n", (double)loop_count / t);
- /* if datap->image is not NULL, this means that */
- /* we are using the SHM mode */
- if (datap->image)
+ if (do_shm)
XCBImageSHMDestroy (datap->image);
XCBDisconnect (datap->conn);
exit(0);
More information about the xcb-commit
mailing list