aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Lacko <backup.rlacko@gmail.com>2013-08-17 10:57:56 -0700
committerRoman Lacko <backup.rlacko@gmail.com>2013-08-17 10:57:56 -0700
commit05f39b5d57458302affbca40d5f4fe524563f5db (patch)
tree13c49697184e037dc41f3697e1969141913b68f6
parent00cc5dbe662db3401259c6b700e623e58866d063 (diff)
parent2b9bbfca55a6582d715cda78cbfd4f46338cec7c (diff)
Merge pull request #13 from Lazik/patch-2
Update hellogl.py
-rwxr-xr-xexamples/opengl/hellogl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/opengl/hellogl.py b/examples/opengl/hellogl.py
index 3bb7d49..f812e3f 100755
--- a/examples/opengl/hellogl.py
+++ b/examples/opengl/hellogl.py
@@ -126,7 +126,7 @@ class GLWidget(QtOpenGL.QGLWidget):
def resizeGL(self, width, height):
side = min(width, height)
- GL.glViewport((width - side) / 2, (height - side) / 2, side, side)
+ GL.glViewport(int((width - side) / 2),int((height - side) / 2), side, side)
GL.glMatrixMode(GL.GL_PROJECTION)
GL.glLoadIdentity()