Bugzilla – Attachment 663 Details for
Bug 1099
Calling setFullscreen from anywhere while warpPointer is being called from a display() method causes locking issues
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
Test case
BugNEWTWarpPointerFullscreenCollision.java (text/x-java), 1.96 KB, created by
Mark Raynsford
on 2014-10-28 21:02:42 CET
(
hide
)
Description:
Test case
Filename:
MIME Type:
Creator:
Mark Raynsford
Created:
2014-10-28 21:02:42 CET
Size:
1.96 KB
patch
obsolete
>package com.jogamp.opengl.test.bugs; > >import javax.media.nativewindow.WindowClosingProtocol.WindowClosingMode; >import javax.media.opengl.GLAutoDrawable; >import javax.media.opengl.GLCapabilities; >import javax.media.opengl.GLEventListener; >import javax.media.opengl.GLProfile; > >import org.junit.Test; > >import com.jogamp.newt.event.KeyEvent; >import com.jogamp.newt.event.KeyListener; >import com.jogamp.newt.opengl.GLWindow; >import com.jogamp.opengl.util.Animator; > >public final class BugNEWTWarpPointerFullscreenCollision >{ > @Test public void testCollision() > throws InterruptedException > { > final GLProfile profile = GLProfile.get(GLProfile.GL3); > final GLCapabilities caps = new GLCapabilities(profile); > final GLWindow window = GLWindow.create(caps); > window.setSize(640, 480); > > final Animator anim = new Animator(); > anim.setUpdateFPSFrames(60, System.err); > anim.add(window); > > window.addGLEventListener(new GLEventListener() { > @Override public void init( > final GLAutoDrawable drawable) > { > // Nothing > } > > @Override public void dispose( > final GLAutoDrawable drawable) > { > // Nothing. > } > > @Override public void display( > final GLAutoDrawable drawable) > { > window.warpPointer(window.getWidth() / 2, window.getHeight() / 2); > } > > @Override public void reshape( > final GLAutoDrawable drawable, > final int x, > final int y, > final int width, > final int height) > { > // Nothing > } > }); > > window.addKeyListener(new KeyListener() { > @Override public void keyReleased( > final KeyEvent e) > { > window.setFullscreen(!window.isFullscreen()); > } > > @Override public void keyPressed( > final KeyEvent e) > { > // Nothing > } > }); > > window.setDefaultCloseOperation(WindowClosingMode.DISPOSE_ON_CLOSE); > window.setVisible(true); > anim.start(); > > Thread.sleep(10000); > } >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1099
: 663 |
664