Skip to content

Commit

Permalink
fix capture of images not starting at 0,0
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@12949 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jul 3, 2016
1 parent 84cba0e commit a97bd35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/platform/win32/shadow_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def get_image(self, x, y, width, height, logger=None):
finally:
pass
assert pixels, "no pixels returned from GetBitmapBits"
v = ImageWrapper(0, 0, width, height, pixels, "BGRX", 24, width*4, planes=ImageWrapper.PACKED, thread_safe=True)
v = ImageWrapper(x, y, width, height, pixels, "BGRX", 24, width*4, planes=ImageWrapper.PACKED, thread_safe=True)
if logger==None:
logger = log
log("get_image%s=%s took %ims", (x, y, width, height), v, (time.time()-start)*1000)
Expand Down

0 comments on commit a97bd35

Please sign in to comment.