Browse Source

win-capture: Fix cursor corruption bug (typo)

jp9000 9 years ago
parent
commit
d56dc4791d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/win-capture/cursor-capture.c

+ 1 - 1
plugins/win-capture/cursor-capture.c

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