Fix preview written to journal Incomplete Port to Python 3.
James Cameron
4 years ago
1 changed file(s) with
1 addition(s)
and
1 deletion(s)
.
Raw diff
Collapse all
Expand all
+1
-1
readactivity.py
less
more
1335
1335
cr.set_source_surface(screenshot_surface)
1336
1336
cr.paint()
1337
1337
1338
preview_str = io.StringIO()
1338
preview_str = io.BytesIO()
1339
1339
preview_surface.write_to_png(preview_str)
1340
1340
return preview_str.getvalue()