mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-07-31 19:43:38 +00:00
[c-host] nvfbc: correct frame change check logic
This commit is contained in:
parent
fc6681306e
commit
e30e5da75a
1 changed files with 5 additions and 3 deletions
|
@ -258,9 +258,11 @@ static CaptureResult nvfbc_capture()
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
bool changed = false;
|
bool changed = false;
|
||||||
for(unsigned int y = 0; y < this->height / 128; ++y)
|
const unsigned int h = (this->height + 127) / 128;
|
||||||
for(unsigned int x = 0; x < this->width / 128; ++x)
|
const unsigned int w = (this->width + 127) / 128;
|
||||||
if (this->diffMap[x*y])
|
for(unsigned int y = 0; y < h; ++y)
|
||||||
|
for(unsigned int x = 0; x < w; ++x)
|
||||||
|
if (this->diffMap[(y*w)+x])
|
||||||
{
|
{
|
||||||
changed = true;
|
changed = true;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue