mirror of
https://github.com/sheumann/VNCviewGS.git
synced 2024-11-21 10:33:40 +00:00
Fix bug where the rightmost few pixels of a cursor could sometimes be corrupted
This commit is contained in:
parent
8cdef04732
commit
8ee57096d2
6
mouse.cc
6
mouse.cc
@ -272,10 +272,8 @@ void DoCursor (void) {
|
||||
|
||||
if (rectWidth % 4) {
|
||||
*(imageLine + n) = 0;
|
||||
switch (rectWidth - n * 4) {
|
||||
case 3: *(imageLine + n) += coltab640[*(dataPtr++)] & 0x0C;
|
||||
case 2: *(imageLine + n) += coltab640[*(dataPtr++)] & 0x30;
|
||||
case 1: *(imageLine + n) += coltab640[*(dataPtr++)] & 0xC0;
|
||||
for (j = 0; j < rectWidth % 4; j++) {
|
||||
*(imageLine + n) += coltab640[*(dataPtr++)] & (0xC0 >> j*2);
|
||||
}
|
||||
*(imageLine + n) ^= 0xFF; /* Reverse color */
|
||||
*(imageLine + n) &= *(maskLine + n);
|
||||
|
Loading…
Reference in New Issue
Block a user