diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-03-13 18:12:37 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-03-13 18:12:37 +0100 |
commit | fb734bf54d9eb0136f0e88aa8f55a27622c8ef6d (patch) | |
tree | c732dd4a413aea9a0c391ccca4e91c72bcf57f0a /src/blueshift_drm.pyx | |
parent | add drm connection manager (diff) | |
download | blueshift-fb734bf54d9eb0136f0e88aa8f55a27622c8ef6d.tar.gz blueshift-fb734bf54d9eb0136f0e88aa8f55a27622c8ef6d.tar.bz2 blueshift-fb734bf54d9eb0136f0e88aa8f55a27622c8ef6d.tar.xz |
m + add list_screens_drm, rename list_screens to list_screens_randr and make list_screens run eiher list_screens_randr or list_screens_drm
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/blueshift_drm.pyx')
-rw-r--r-- | src/blueshift_drm.pyx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/blueshift_drm.pyx b/src/blueshift_drm.pyx index 30f07c1..001ec41 100644 --- a/src/blueshift_drm.pyx +++ b/src/blueshift_drm.pyx @@ -270,9 +270,9 @@ def drm_get_connector_type_name(int connection, int connector_index): @param connection The identifier for the connection to the card @param connector_index The index of the connector @return :str The connector type by name, "Unknown" if not identifiable, - "Unrecognised" if Blueshift does not recognise it. + "Unrecognised" if Blueshift does not recognise it. ''' - return <bytes>blueshift_drm_get_connector_type_name(connection, connector_index) + return (<bytes>blueshift_drm_get_connector_type_name(connection, connector_index)).decode('utf-8', 'replace') def drm_get_edid(int connection, int connector_index): @@ -303,5 +303,5 @@ def drm_get_edid(int connection, int connector_index): edid[got * 2] = 0 rc = edid free(edid) - return rc + return rc.decode('utf-8', 'replace') |