[Haskell-cafe] Problem resizing widget contained in window

Bit Connor bit at mutantlemon.com
Sun Jul 19 21:37:21 EDT 2009


On Tue, Jul 14, 2009 at 5:46 PM, Jeff Heard<jefferson.r.heard at gmail.com> wrote:
> Now, if someone resizes the window, the GLArea does not appear to
> resize along with it.  Did I screw something up?

You need to call the opengl glViewport function(I don't remember what
the haskell binding is called) in your resize handler so that opengl
knows about the new viewport size. And you are also probably going to
want to update the opengl projection matrix to prevent distortion as a
result of a changed aspect ratio.


More information about the Haskell-Cafe mailing list