Skip to content

Commit 4cb340d

Browse files
committed
examples: xdamage: fix NameErrors
1 parent a21842a commit 4cb340d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/xdamage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ def blink(display, win, gc, cols):
5353

5454
def get_image_from_win(win, pt_w, pt_h, pt_x=0, pt_y=0):
5555
try:
56-
raw = win.get_image(ptX,ptY, ptW,ptH, X.ZPixmap, 0xffffffff)
57-
image = Image.frombytes("RGB", (ptW, ptH), raw.data, "raw", "BGRX")
56+
raw = win.get_image(pt_x, pt_y, pt_w, pt_h, X.ZPixmap, 0xffffffff)
57+
image = Image.frombytes("RGB", (pt_w, pt_h), raw.data, "raw", "BGRX")
5858
return image
5959

6060
except Exception:

0 commit comments

Comments
 (0)