win-capture: Fix cursor corruption bug (typo)

master
jp9000 2016-04-18 18:34:41 -07:00
parent cbd13063c6
commit d56dc4791d
1 changed files with 1 additions and 1 deletions

View File

@ -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;