diff options
author | Roman Lacko <backup.rlacko@gmail.com> | 2013-08-17 10:57:56 -0700 |
---|---|---|
committer | Roman Lacko <backup.rlacko@gmail.com> | 2013-08-17 10:57:56 -0700 |
commit | 05f39b5d57458302affbca40d5f4fe524563f5db (patch) | |
tree | 13c49697184e037dc41f3697e1969141913b68f6 | |
parent | 00cc5dbe662db3401259c6b700e623e58866d063 (diff) | |
parent | 2b9bbfca55a6582d715cda78cbfd4f46338cec7c (diff) |
Merge pull request #13 from Lazik/patch-2
Update hellogl.py
-rwxr-xr-x | examples/opengl/hellogl.py | 2 |
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() |