dwmkerr / sharpgl

Use OpenGL in .NET applications. SharpGL wraps all modern OpenGL features and offers a powerful scene graph to aid development.
MIT License
755 stars 299 forks source link

a bug in OpenGL.GDItoOpenGL(ref int x, ref int y); when y is 0? #109

Open bitzhuwei opened 9 years ago

bitzhuwei commented 9 years ago

I think y should be: y = viewport[3] - y - 1; It also exsts in GDICoordinatetoOpenGLCoordinate(ref int x, ref int y);.