summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-10-14 13:46:48 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-10-14 13:46:48 +0100
commit1a6acd6596d6b568d0dbf48ade8c5982c884cda1 (patch)
treead82d97f380bc62168d95268c958344ebf5136e0
parentb4584da9fec1b05adfed29b95bf086aec14c860d (diff)
fish: reset clip to display fps
-rw-r--r--fish-demo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fish-demo.c b/fish-demo.c
index 413977b..3c4331f 100644
--- a/fish-demo.c
+++ b/fish-demo.c
@@ -230,8 +230,10 @@ int main (int argc, char **argv)
fish_draw(device, cr, &fish[n], reflection, x1, x2, strip);
gettimeofday(&now, NULL);
- if (benchmark < 0 && last_fps.tv_sec)
+ if (benchmark < 0 && last_fps.tv_sec) {
+ cairo_reset_clip (cr);
fps_draw(cr, device->name, &last_fps, &now);
+ }
last_fps = now;
cairo_destroy(cr);