View Full Version : problem resizing viewport

02-05-2001, 11:03 AM
Here's the problem: I'm implementing an OpenGL view running on Win2K. It works great except that the OpenGL viewport will only go up to a certain size, about height=350, width=500. Beyond this size, the background color still fills the window's client area, but the objects in the scene are clipped to this max size on the bottom and right.

The code does standard stuff in the OnSize event, i.e. it calls glViewport(0,0,x,y) with the window size params. Also it calls glFrustum to set a field of view of 45 degrees and an aspect ratio equal to that of the window.

Anyone seen this problem before? Any tips appreciated. Thanks!

Leyder Dylan
02-05-2001, 12:15 PM

I'm using Win2k. Send me the code and I'll tell you if that works. Ok ?

Leyder Dylan
Site : http://slug-production.ibelgique.col
E-Mail : dylan.leyder@ibelgique.com

02-05-2001, 12:24 PM
See http://support.microsoft.com/support/kb/articles/Q272/2/22.ASP

02-05-2001, 12:35 PM
Originally posted by Coconut:
See http://support.microsoft.com/support/kb/articles/Q272/2/22.ASP

That's the problem!! Thanks!