diff options
author | Anders Broman <anders.broman@ericsson.com> | 2012-11-08 13:42:34 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2012-11-08 13:42:34 +0000 |
commit | 3e9e6f040e4b27e270c0b5d9b1c82565d2b2bcb2 (patch) | |
tree | a312556ed21d5f6630228bc74272ab91daeb0bc0 /ui/gtk/io_stat.c | |
parent | 8d482cf1616ef6036e5fe54b4aebbd91115e8bcd (diff) |
Remove one more instance of destroy/create cr.
svn path=/trunk/; revision=45972
Diffstat (limited to 'ui/gtk/io_stat.c')
-rw-r--r-- | ui/gtk/io_stat.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/ui/gtk/io_stat.c b/ui/gtk/io_stat.c index afabc79d66..c3bc6b4690 100644 --- a/ui/gtk/io_stat.c +++ b/ui/gtk/io_stat.c @@ -955,8 +955,6 @@ static void } } - cairo_destroy (cr); - cr = NULL; /* If we have not specified the last_interval via the GUI, just pick the current end of the * capture so that it scrolls nicely when doing live captures. @@ -969,12 +967,6 @@ static void /*XXX*/ /* plot the x-scale */ -#if GTK_CHECK_VERSION(2,22,0) - cr = cairo_create (io->surface); -#else - cr = gdk_cairo_create (io->pixmap); -#endif - cairo_set_line_width (cr, 1.0); cairo_move_to(cr, io->left_x_border+0.5, io->surface_height-bottom_y_border+1.5); cairo_line_to(cr, io->surface_width-io->right_x_border+1.5,io->surface_height-bottom_y_border+1.5); cairo_stroke(cr); |