@@ -132,7 +132,7 @@ def enum_display_monitors(self):
132
132
If the monitor has rotation, you have to deal with inside
133
133
this method.
134
134
135
- Must returns a dict with a minima:
135
+ Must returns a dict with at minima:
136
136
{
137
137
'left': the x-coordinate of the upper-left corner,
138
138
'top': the y-coordinate of the upper-left corner,
@@ -375,7 +375,7 @@ def _set_argtypes(self):
375
375
c_int , c_int , c_uint , c_uint , c_ulong ,
376
376
c_int ]
377
377
self .xlib .XGetPixel .argtypes = [POINTER (XImage ), c_int , c_int ]
378
- self .xlib .XFree .argtypes = [POINTER (XImage )]
378
+ self .xlib .XDestroyImage .argtypes = [POINTER (XImage )]
379
379
self .xlib .XCloseDisplay .argtypes = [POINTER (Display )]
380
380
self .xrandr .XRRGetScreenResources .argtypes = [POINTER (Display ),
381
381
POINTER (Display )]
@@ -398,7 +398,7 @@ def _set_restypes(self):
398
398
self .xlib .XAllPlanes .restype = c_ulong
399
399
self .xlib .XGetImage .restype = POINTER (XImage )
400
400
self .xlib .XGetPixel .restype = c_ulong
401
- self .xlib .XFree .restype = c_void_p
401
+ self .xlib .XDestroyImage .restype = c_void_p
402
402
self .xlib .XCloseDisplay .restype = c_void_p
403
403
self .xlib .XDefaultRootWindow .restype = POINTER (XWindowAttributes )
404
404
self .xrandr .XRRGetScreenResources .restype = POINTER (XRRScreenResources )
@@ -477,7 +477,7 @@ def pix(pixel, _resultats={}, b=pack):
477
477
pixels = [pix (get_pix (ximage , x , y ))
478
478
for y in range (height ) for x in range (width )]
479
479
480
- self .xlib .XFree (ximage )
480
+ self .xlib .XDestroyImage (ximage )
481
481
self .image = b'' .join (pixels )
482
482
return self .image
483
483
0 commit comments