We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77eb003 commit 7423adcCopy full SHA for 7423adc
1 file changed
mss.py
@@ -449,7 +449,6 @@ def get_pixels(self, monitor):
449
for ( x = 0; x < width; ++x )
450
for ( y = 0; y < height; ++y )
451
offset = width * y * 3;
452
- //~ pixel = XGetPixel(ximage, x, y);
453
addr = &(ximage->data)[y * ximage->bytes_per_line + (x << 2)];
454
pixel = addr[3] << 24 | addr[2] << 16 | addr[1] << 8 | addr[0];
455
pixels[x * 3 + offset] = (pixel & ximage->red_mask) >> 16;
0 commit comments