mirror of
https://github.com/sheumann/VNCviewGS.git
synced 2024-11-22 02:30:47 +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) {
|
if (rectWidth % 4) {
|
||||||
*(imageLine + n) = 0;
|
*(imageLine + n) = 0;
|
||||||
switch (rectWidth - n * 4) {
|
for (j = 0; j < rectWidth % 4; j++) {
|
||||||
case 3: *(imageLine + n) += coltab640[*(dataPtr++)] & 0x0C;
|
*(imageLine + n) += coltab640[*(dataPtr++)] & (0xC0 >> j*2);
|
||||||
case 2: *(imageLine + n) += coltab640[*(dataPtr++)] & 0x30;
|
|
||||||
case 1: *(imageLine + n) += coltab640[*(dataPtr++)] & 0xC0;
|
|
||||||
}
|
}
|
||||||
*(imageLine + n) ^= 0xFF; /* Reverse color */
|
*(imageLine + n) ^= 0xFF; /* Reverse color */
|
||||||
*(imageLine + n) &= *(maskLine + n);
|
*(imageLine + n) &= *(maskLine + n);
|
||||||
|
Loading…
Reference in New Issue
Block a user