diff options
author | Hans Breuer <hans@breuer.org> | 2011-01-02 12:36:16 +0100 |
---|---|---|
committer | Hans Breuer <hans@breuer.org> | 2011-01-02 13:33:13 +0100 |
commit | 23506c0e44e9ebe84a2155aa62b0dd0122685c95 (patch) | |
tree | fda26f8efb5e59c5a65960f46d1e4031c12d61e4 | |
parent | 53c1b21ffb223aa3fdcaaf02bd6c5e2b6874a9d4 (diff) | |
download | gtk+-23506c0e44e9ebe84a2155aa62b0dd0122685c95.tar.gz |
c99ism: declaration in the mid of a block
-rw-r--r-- | tests/testcairo.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/testcairo.c b/tests/testcairo.c index f66d2d6266..eaca7a83b7 100644 --- a/tests/testcairo.c +++ b/tests/testcairo.c @@ -121,11 +121,10 @@ on_draw (GtkWidget *widget, { cairo_surface_t *overlay, *punch, *circles; cairo_t *overlay_cr, *punch_cr, *circles_cr; - int width, height; /* Fill the background */ - width = gtk_widget_get_allocated_width (widget); - height = gtk_widget_get_allocated_height (widget); + int width = gtk_widget_get_allocated_width (widget); + int height = gtk_widget_get_allocated_height (widget); double radius = 0.5 * (width < height ? width : height) - 10; double xc = width / 2.; double yc = height / 2.; |