@@ -132,7 +132,7 @@ def enum_display_monitors(self):
132132 If the monitor has rotation, you have to deal with inside
133133 this method.
134134
135- Must returns a dict with a minima:
135+ Must returns a dict with at minima:
136136 {
137137 'left': the x-coordinate of the upper-left corner,
138138 'top': the y-coordinate of the upper-left corner,
@@ -375,7 +375,7 @@ def _set_argtypes(self):
375375 c_int , c_int , c_uint , c_uint , c_ulong ,
376376 c_int ]
377377 self .xlib .XGetPixel .argtypes = [POINTER (XImage ), c_int , c_int ]
378- self .xlib .XFree .argtypes = [POINTER (XImage )]
378+ self .xlib .XDestroyImage .argtypes = [POINTER (XImage )]
379379 self .xlib .XCloseDisplay .argtypes = [POINTER (Display )]
380380 self .xrandr .XRRGetScreenResources .argtypes = [POINTER (Display ),
381381 POINTER (Display )]
@@ -398,7 +398,7 @@ def _set_restypes(self):
398398 self .xlib .XAllPlanes .restype = c_ulong
399399 self .xlib .XGetImage .restype = POINTER (XImage )
400400 self .xlib .XGetPixel .restype = c_ulong
401- self .xlib .XFree .restype = c_void_p
401+ self .xlib .XDestroyImage .restype = c_void_p
402402 self .xlib .XCloseDisplay .restype = c_void_p
403403 self .xlib .XDefaultRootWindow .restype = POINTER (XWindowAttributes )
404404 self .xrandr .XRRGetScreenResources .restype = POINTER (XRRScreenResources )
@@ -477,7 +477,7 @@ def pix(pixel, _resultats={}, b=pack):
477477 pixels = [pix (get_pix (ximage , x , y ))
478478 for y in range (height ) for x in range (width )]
479479
480- self .xlib .XFree (ximage )
480+ self .xlib .XDestroyImage (ximage )
481481 self .image = b'' .join (pixels )
482482 return self .image
483483
0 commit comments