summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHans Breuer <hans@breuer.org>2011-01-02 12:36:16 +0100
committerHans Breuer <hans@breuer.org>2011-01-02 13:33:13 +0100
commit23506c0e44e9ebe84a2155aa62b0dd0122685c95 (patch)
treefda26f8efb5e59c5a65960f46d1e4031c12d61e4 /tests
parent53c1b21ffb223aa3fdcaaf02bd6c5e2b6874a9d4 (diff)
downloadgtk+-23506c0e44e9ebe84a2155aa62b0dd0122685c95.tar.gz
c99ism: declaration in the mid of a block
Diffstat (limited to 'tests')
-rw-r--r--tests/testcairo.c5
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.;