Skip to content

Commit 7423adc

Browse files
author
BoboTiG
committed
MSSLinux: remove obsolete XGetPixel()
1 parent 77eb003 commit 7423adc

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

mss.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,6 @@ def get_pixels(self, monitor):
449449
for ( x = 0; x < width; ++x )
450450
for ( y = 0; y < height; ++y )
451451
offset = width * y * 3;
452-
//~ pixel = XGetPixel(ximage, x, y);
453452
addr = &(ximage->data)[y * ximage->bytes_per_line + (x << 2)];
454453
pixel = addr[3] << 24 | addr[2] << 16 | addr[1] << 8 | addr[0];
455454
pixels[x * 3 + offset] = (pixel & ximage->red_mask) >> 16;

0 commit comments

Comments
 (0)