Scaling issues using OpenGLContext


#1

I have an app where my main component is attached to a OpenGLContext. The component has size 300x480, and is rendered as is into the OpenGL context, which means it is far too small.

How do I map the 300x480 to the existing screen area ? I know there's setTransform on the Component, but I've thus far been able to get it to work nicely.

Edit: Ok, works now, had to put another component "in-between" my main component and the window.