mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 11:17:54 +00:00
[obs] fix oob cursor writes
This commit is contained in:
parent
1462ab0cb4
commit
6058a0e243
1 changed files with 1 additions and 1 deletions
2
obs/lg.c
2
obs/lg.c
|
@ -244,7 +244,7 @@ static void * pointerThread(void * data)
|
|||
|
||||
const uint32_t * s = (const uint32_t *)data;
|
||||
uint32_t * d = this->cursorData;
|
||||
for(int i = 0; i < dataSize; ++i, ++s, ++d)
|
||||
for(int i = 0; i < dataSize / sizeof(uint32_t); ++i, ++s, ++d)
|
||||
*d = (*s & ~0xFF000000) | (*s & 0xFF000000 ? 0x0 : 0xFF000000);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue