Login  Register

Re: Centering a Newt window?

Posted by Stephen on Oct 14, 2012; 5:01pm
URL: https://forum.jogamp.org/Centering-a-Newt-window-tp4026458p4026500.html

Thank you Sven!

I used getRotatedWidth/getRotatedHeight and used newWidth = (screenWidth / 2) -  (windowWidth / 2) and same thing for height.

Thank you again,
~Stephen