Skip to content

Commit

Permalink
Merge pull request #329
Browse files Browse the repository at this point in the history
  • Loading branch information
codewarrior0 committed Apr 11, 2013
2 parents 2709a37 + 8beecc1 commit 312c90a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion albow/widget.py
Expand Up @@ -743,7 +743,7 @@ def gl_draw_all(self, root, offset):
GLU.gluOrtho2D(0, w, 0, h)
GL.glMatrixMode(GL.GL_MODELVIEW)
GL.glLoadIdentity()
GL.glRasterPos2i(rect.left, h - rect.bottom)
GL.glRasterPos2i(max(rect.left, 0), max(h - rect.bottom, 0))
GL.glPushAttrib(GL.GL_COLOR_BUFFER_BIT)
GL.glEnable(GL.GL_BLEND)
GL.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA)
Expand Down

0 comments on commit 312c90a

Please sign in to comment.