Skip to content

Commit c667c1e

Browse files
committed
Force know pixel format in images
- Version 4.3.8 - Removed *.pyc
1 parent 04fe94c commit c667c1e

4 files changed

Lines changed: 4 additions & 2 deletions

File tree

-170 Bytes
Binary file not shown.
-179 Bytes
Binary file not shown.
-187 Bytes
Binary file not shown.

AndroidViewClient/src/com/dtmilano/android/adb/adbclient.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
@author: Diego Torres Milano
1818
'''
1919

20-
__version__ = '4.3.6'
20+
__version__ = '4.3.8'
2121

2222
import sys
2323
import socket
@@ -334,7 +334,9 @@ def takeSnapshot(self, reconnect=False):
334334
(ex, ','.join([str(v) for v in (version, bpp, size, width, height, roffset, rlen, boffset, blen, goffset, glen, aoffset, alen)])))
335335
mode = ''.join(mode)
336336
if DEBUG:
337-
print >> sys.stderr, " takeSnapshot:", (version, bpp, size, width, height, roffset, rlen, boffset, blen, goffset, blen, aoffset, alen)
337+
print >> sys.stderr, " takeSnapshot:", (version, bpp, size, width, height, roffset, rlen, boffset, blen, goffset, blen, aoffset, alen, mode)
338+
if mode == 'BGRA':
339+
mode = 'RGBA'
338340
self.__send('\0', checkok=False, reconnect=False)
339341
if DEBUG:
340342
print >> sys.stderr, " takeSnapshot: reading %d bytes" % (size)

0 commit comments

Comments
 (0)