fix projection matrix so widget resizes properly

This commit is contained in:
Josh Holtrop committed 2011-04-01 21:15:59 -04:00
1 parent 594a5c5359
commit 3a7255bbae
1 file changed
+1
+1
View File
@@ -64,6 +64,7 @@ class SketchWidget:
glViewport(0, 0, width, height)
glMatrixMode(GL_PROJECTION)
glLoadIdentity()
glOrtho(0, width, 0, height, 1.0, -1.0)
glMatrixMode(GL_MODELVIEW)