window-actor: Rename variable in scanning function

"w" usually stands for "width", but here it stands for the end X bound,
so we'll rename it to the more traditional "x2".

https://bugzilla.gnome.org/show_bug.cgi?id=691874
This commit is contained in:
Jasper St. Pierre 2013-01-16 10:14:40 -05:00
parent 2bfe6d2da5
commit 95f3bb3b81

View File

@ -2113,14 +2113,14 @@ scan_visible_region (guchar *mask_data,
{
for (x = rect.x; x < (rect.x + rect.width); x++)
{
int w = x;
while (mask_data[y * stride + w] == 255 && w < (rect.x + rect.width))
w++;
int x2 = x;
while (mask_data[y * stride + x2] == 255 && x2 < (rect.x + rect.width))
x2++;
if (w > 0)
if (x2 > 0)
{
meta_region_builder_add_rectangle (&builder, x, y, w - x, 1);
x = w;
meta_region_builder_add_rectangle (&builder, x, y, x2 - x, 1);
x = x2;
}
}
}