Skip to content

Commit

Permalink
Merge pull request #135 from mfuerni/patch-1
Browse files Browse the repository at this point in the history
Use cropped image for compare
  • Loading branch information
sibson committed Oct 1, 2018
2 parents a353752 + 8fd202a commit f48a26a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vncdotool/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def _expectFramebuffer(self, filename, x, y, maxrms):
def _expectCompare(self, data, box, maxrms):
image = self.screen.crop(box)

hist = self.screen.histogram()
hist = image.histogram()
if len(hist) == len(self.expected):
sum_ = 0
for h, e in zip(hist, self.expected):
Expand Down

0 comments on commit f48a26a

Please sign in to comment.