Skip to content

Commit 0ff438b

Browse files
Volodymyr Samokhatkobk138
authored andcommitted
libvncserver: fix vertical blank stripe on cursor converted from alpha source
1 parent 111db4b commit 0ff438b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libvncserver/cursor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ char* rfbMakeMaskFromAlphaSource(int width,int height,unsigned char* alphaSource
344344
/* alpha was treated as 0 */
345345
} else {
346346
/* set to solid */
347-
result[i/8+j*maskStride]|=(0x100>>(i&7));
347+
result[i/8+j*maskStride]|=(0x100>>((i&7)+1));
348348
/* alpha was treated as 0xff */
349349
currentError-=0xff;
350350
}

0 commit comments

Comments
 (0)