Wrong size when switching to windowed mode
Posted by
gouessej on
Nov 08, 2012; 10:43pm
URL: https://forum.jogamp.org/Wrong-size-when-switching-to-windowed-mode-tp4026835.html
Hi
I use the following code:
glWindow.setFullscreen(false);
glWindow.setUndecorated(false);
glWindow.setTopLevelSize(screenWidth,screenHeight);
glWindow.setTopLevelPosition(0,0);
Sometimes, the window size is 100 * 100 even though I call setTopLevelSize(1024, 780). Is it the right way of switching to windowed mode?