Commit 95f3bb3b authored by Jasper St. Pierre's avatar Jasper St. Pierre
Browse files

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
parent 2bfe6d2d
......@@ -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;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment