Skip to content

Commit

Permalink
Replace deprecated ANTIALIAS algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmilano committed Sep 28, 2024
1 parent d6e6cf4 commit 0a26ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/dtmilano/android/culebron.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def takeScreenshotAndShowItOnWindow(self):
if self.scale != 1:
scaledWidth = int(width * self.scale)
scaledHeight = int(height * self.scale)
self.image = self.image.resize((scaledWidth, scaledHeight), PIL.Image.ANTIALIAS)
self.image = self.image.resize((scaledWidth, scaledHeight), PIL.Image.LANCZOS)
(width, height) = self.image.size
if self.isDarwin and 14 < self.sdkVersion < 23:
if sys.version_info[0] < 3:
Expand Down

0 comments on commit 0a26ede

Please sign in to comment.