mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[host] nvfbc: fix comments in updateDamageRects
This commit is contained in:
parent
15ec80e80d
commit
12461196c3
@ -394,8 +394,8 @@ static void updateDamageRects(CaptureFrame * frame)
|
|||||||
for(unsigned int i = 0; i < ARRAY_LENGTH(ds); ++i)
|
for(unsigned int i = 0; i < ARRAY_LENGTH(ds); ++i)
|
||||||
ds[i].use = (bool)this->diffMap[i];
|
ds[i].use = (bool)this->diffMap[i];
|
||||||
|
|
||||||
// reduce the number of reusuting rectangles by filling in holes and merging
|
// reduce the number of resulting rectangles by filling in holes and merging
|
||||||
// iiregular shapes into contiguous rectangles
|
// irregular shapes into contiguous rectangles
|
||||||
bool resolve;
|
bool resolve;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
@ -447,8 +447,8 @@ static void updateDamageRects(CaptureFrame * frame)
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
if (x > 0 && ds[l].id != ds[u].id)
|
if (x > 0 && ds[l].id != ds[u].id)
|
||||||
{
|
{
|
||||||
// no need to use dsFind as the search order ensures that the id has
|
// no need to use dsFind as the search order ensures that the id of
|
||||||
// been fully resolved of the block above
|
// the block above has been fully resolved
|
||||||
for(unsigned int j = ds[ds[u].id].x1; j <= ds[ds[u].id].x2; ++j)
|
for(unsigned int j = ds[ds[u].id].x1; j <= ds[ds[u].id].x2; ++j)
|
||||||
if (!ds[y * w + j].use)
|
if (!ds[y * w + j].use)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user