Login  Register

Re: Wrong size when switching to windowed mode

Posted by Sven Gothel on Nov 08, 2012; 11:56pm
URL: https://forum.jogamp.org/Wrong-size-when-switching-to-windowed-mode-tp4026835p4026837.html

On 11/08/2012 11:43 PM, gouessej [via jogamp] wrote:
> Hi
>
> I use the following code:
> glWindow.setFullscreen(false);
If every thing else was default and window size as desired
before switch to FS via "glWindow.setFullscreen(true)", then:

> glWindow.setUndecorated(false);
- is redundant
> glWindow.setTopLevelSize(screenWidth,screenHeight);
- that would be like fullscreen as a window
> glWindow.setTopLevelPosition(0,0);
- if you desire ..

>
> Sometimes, the window size is 100 * 100 even though I call
> setTopLevelSize(1024, 780). Is it the right way of switching to windowed mode?

I don't know what your goal is (size, props, ..) hence .. dunno.

Pls send little unit test case (copied from one of our ScreenMode tests maybe.

~Sven



signature.asc (907 bytes) Download Attachment