diff options
Diffstat (limited to 'pugl/pugl_x11.c')
-rw-r--r-- | pugl/pugl_x11.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c index c6cc2b5..f4aa933 100644 --- a/pugl/pugl_x11.c +++ b/pugl/pugl_x11.c @@ -176,8 +176,8 @@ puglReshape(PuglWindow* win, int width, int height) // No custom reshape function, do something reasonable glMatrixMode(GL_PROJECTION); glLoadIdentity(); - gluPerspective(45.0f, win->width/(float)win->height, 1.0f, 10.0f); - glViewport(0, 0, win->width, win->height); + gluPerspective(45.0f, width/(float)height, 1.0f, 10.0f); + glViewport(0, 0, width, height); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); @@ -203,6 +203,8 @@ puglDisplay(PuglWindow* win) if (win->impl->doubleBuffered) { glXSwapBuffers(win->impl->display, win->impl->win); } + + win->redisplay = false; } PuglStatus |