Login  Register

Re: Newt: Fullscreen and Undecorated not working on Windows

Posted by Sven Gothel on Mar 15, 2011; 3:57pm
URL: https://forum.jogamp.org/Newt-Fullscreen-and-Undecorated-not-working-on-Windows-tp2671034p2683562.html

On Saturday, March 12, 2011 19:14:53 Marc@56K [via jogamp] wrote:
>
> Hi,
>
> I'm using jogl-v2.0-rc2 on Windows7 x64 with a 32Bit JDK and I want to
> create a fullscreen Newt-Window:
>

same on linux, ie bug in this case, changing undecorated and fullscreen before visibility.

will fix that - thx a lot

~Sven


> public class NewtFullscreenBug implements GLEventListener, WindowListener {
>     /**
>      * @param args
>      */
>     public static void main(String[] args) {
>         GLProfile.initSingleton(true);
>         new NewtFullscreenBug();
>     }
>
>     public NewtFullscreenBug() {
>         GLWindow window = GLWindow.create(getGLCapabilities());
>         window.setAutoSwapBufferMode(false);
>         window.setSize(800, 600);
>         window.addGLEventListener(this);
>         window.addWindowListener(this);        
>        
>         window.setUndecorated(true); //not working
>         window.setFullscreen(true); //not working
>                
>         window.setVisible(true);
>
>         while (true)
>             window.display();
>     }
>
>     @Override
>     public void display(GLAutoDrawable arg0) {
>
>     }
>
>     @Override
>     public void dispose(GLAutoDrawable arg0) {}
>
>     public GLCapabilities getGLCapabilities() {
>         GLProfile glp = GLProfile.get("GL2GL3");
>         return new GLCapabilities(glp);
>     }
> ...
>
> setFullscreen and setUndecorated have no effect to the window. It still has
> a border an is not maximized to fullscreen.
>
> p.s. I'm wondering why so many features of the Newt-Window which already
> worked on JOGL 2.0 Beta 10 are now so buggy on windows. Was the Newt-Window
> completely redeveloped after this JOGL-version or what is the reason for
> this fact?
>
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://forum.jogamp.org/Newt-Fullscreen-and-Undecorated-not-working-on-Windows-tp2671034p2671034.html
> To start a new topic under jogl, email [hidden email]
> To unsubscribe from jogl, visit
health & wealth
mailto:
[hidden email] ; http://jausoft.com
land : +49 (471) 4707742 ; cell: +49 (151) 28145941
Timezone CET: PST+9, EST+6, UTC+1