aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Lacko <backup.rlacko@gmail.com>2013-08-01 11:26:29 -0700
committerRoman Lacko <backup.rlacko@gmail.com>2013-08-01 11:26:29 -0700
commitdf4f44b6aeb08f27da270392f5d9dc2e2f28e3a1 (patch)
tree80d52545854753f71d0a696a7361dc8431e16213
parent736c474d9c275f2d0b9f7eaf925b1052a57afb21 (diff)
parentb89eb9160b58711747157695a09bc69b33d68603 (diff)
Merge pull request #10 from Lazik/patch-1
Update mandelbrot.py
-rwxr-xr-xexamples/threads/mandelbrot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/threads/mandelbrot.py b/examples/threads/mandelbrot.py
index 5d04ff5..f5d369b 100755
--- a/examples/threads/mandelbrot.py
+++ b/examples/threads/mandelbrot.py
@@ -87,8 +87,8 @@ class RenderThread(QtCore.QThread):
centerY = self.centerY
self.mutex.unlock()
- halfWidth = resultSize.width() / 2
- halfHeight = resultSize.height() / 2
+ halfWidth = int(resultSize.width() / 2)
+ halfHeight = int(resultSize.height() / 2)
image = QtGui.QImage(resultSize, QtGui.QImage.Format_RGB32)
NumPasses = 8