Author: Tim Felgentreff <[email protected]>
Branch: rbitblt
Changeset: r564:55bea8ee8fbb
Date: 2014-01-09 17:33 +0100
http://bitbucket.org/pypy/lang-smalltalk/changeset/55bea8ee8fbb/
Log: fix drawing of miniimage
diff --git a/spyvm/plugins/bitblt.py b/spyvm/plugins/bitblt.py
--- a/spyvm/plugins/bitblt.py
+++ b/spyvm/plugins/bitblt.py
@@ -751,6 +751,6 @@
self.offsetY = self.intOrIfNil(w_offset._fetch(1), 0)
self.pixPerWord = 32 / self.depth
self.pitch = (self.width + (self.pixPerWord - 1)) / self.pixPerWord | 0
- if self.w_bits.size() != (self.pitch * self.height):
+ if self.w_bits.size() < (self.pitch * self.height):
return
self.invalid = False
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit