Login  Register

reshape() mess

Posted by nickreserved on May 13, 2018; 12:05pm
URL: https://forum.jogamp.org/reshape-mess-tp4038859.html

The following code is my reshape() function.
When I have application window maximized (4K) I get results around 2255 x 1370 which are totally wrong, because 4K is 3840 x 2160, so an output 3600+ x 1900+ will be ok.

Is this a bug, or I miss something?

Windows 7 x64, JDK/JRE 9.0.x, JOGL 2.3.2

@Override
public void reshape(GLAutoDrawable glad, int i, int i1, int i2, int i3) {
	System.out.println("reshape: " + glad.getSurfaceWidth() + " x " + glad.getSurfaceHeight());
	// program.use()
	// Projection*Modeview calculation
	// glUniformMatrix <- Projection * Modelview
}