I have tried doing this too many times can someone look at my code and tell me if you see any thing that is screwy
int h = ClientHeight;
int w = ClientWidth;
glViewport(0, 0, w, h);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
if (w<h){
h=250.0h/w;
w=250;
}
else{
w =250.0h/w;
h =250.0;
}
glOrtho(0,w,0,h,1.0,-1.0);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
FormPaint(Sender);