fix projection matrix so widget resizes properly

This commit is contained in:
Josh Holtrop 2011-04-01 21:15:59 -04:00
parent 594a5c5359
commit 3a7255bbae

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)