summaryrefslogtreecommitdiff
path: root/rapid/rapid.py
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-12-03 22:48:55 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-12-03 22:48:55 +0100
commitb5287ed17bda10877d84ba86fcf148ee74b93b9b (patch)
tree69552b5cf0ce7b0cd9bd81535d4f68468c801cf0 /rapid/rapid.py
parent85d4767b9465501fb8829b02dda18689ab2ac284 (diff)
Imported Upstream version 0.4.11upstream/0.4.11
Diffstat (limited to 'rapid/rapid.py')
-rwxr-xr-xrapid/rapid.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rapid/rapid.py b/rapid/rapid.py
index dd67b63..303e1f7 100755
--- a/rapid/rapid.py
+++ b/rapid/rapid.py
@@ -352,7 +352,7 @@ class DeviceCollection(gtk.TreeView):
def create_cairo_image_surface(pil_image, image_width, image_height):
- imgd = pil_image.tostring("raw","BGRA", 0, 1)
+ imgd = pil_image.tobytes("raw","BGRA", 0, 1)
data = array.array('B',imgd)
stride = image_width * 4
image = cairo.ImageSurface.create_for_data(data, cairo.FORMAT_ARGB32,