mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 03:20:46 -05:00
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:
parent
2bfe6d2da5
commit
95f3bb3b81
@ -2113,14 +2113,14 @@ scan_visible_region (guchar *mask_data,
|
|||||||
{
|
{
|
||||||
for (x = rect.x; x < (rect.x + rect.width); x++)
|
for (x = rect.x; x < (rect.x + rect.width); x++)
|
||||||
{
|
{
|
||||||
int w = x;
|
int x2 = x;
|
||||||
while (mask_data[y * stride + w] == 255 && w < (rect.x + rect.width))
|
while (mask_data[y * stride + x2] == 255 && x2 < (rect.x + rect.width))
|
||||||
w++;
|
x2++;
|
||||||
|
|
||||||
if (w > 0)
|
if (x2 > 0)
|
||||||
{
|
{
|
||||||
meta_region_builder_add_rectangle (&builder, x, y, w - x, 1);
|
meta_region_builder_add_rectangle (&builder, x, y, x2 - x, 1);
|
||||||
x = w;
|
x = x2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user