提交 d56dc479 编写于 作者: J jp9000

win-capture: Fix cursor corruption bug (typo)

上级 cbd13063
......@@ -20,7 +20,7 @@ static uint8_t *get_bitmap_data(HBITMAP hbmp, BITMAP *bmp)
static inline uint8_t bit_to_alpha(uint8_t *data, long pixel, bool invert)
{
uint8_t pix_byte = data[pixel / 8];
bool alpha = (pix_byte >> (7 - pixel % 7) & 1) != 0;
bool alpha = (pix_byte >> (7 - pixel % 8) & 1) != 0;
if (invert) {
return alpha ? 0xFF : 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册