aboutsummaryrefslogtreecommitdiff
path: root/graphics/zimg/files/patch-zimg.c
blob: 354fc730d16b74d901b2b2e48912aa9b3df8dd34 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- zimg.c.orig	Sat Aug 27 21:46:20 2005
+++ zimg.c	Sat Aug 27 23:04:13 2005
@@ -2147,6 +2147,8 @@
 
 		for (current = z.label; current; current = current->next) {
 
+		    int width, height;
+
 		    int x = current->x;
 		    int y = current->y;
 
@@ -2160,8 +2162,8 @@
 			continue;
 		    }
 
-		    int width = brect[2] - brect[6];
-		    int height = brect[3] - brect[7];
+		    width = brect[2] - brect[6];
+		    height = brect[3] - brect[7];
 
 		    /* if label.x or label.y are positive, do NOT make any
 		     * check, if the text will be entirely on the image */