Bug 1184 - JOGL AWT Canvas Components don't update AWTGraphicsConfiguration when reconfigured.
: JOGL AWT Canvas Components don't update AWTGraphicsConfiguration when reconfi...
Status: RESOLVED FIXED
: None
: Jogl
: JogAmp
: awt (show other bugs)
: 2.3.2
: All all
: --- enhancement
: Sven Gothel
:
:
: 1181
  Show dependency treegraph
 
Reported: 2015-07-27 19:59 CEST by Sven Gothel
Modified: 2015-09-27 01:11 CEST (History)
0 users

:
Type: ---
SCM Refs:
6ae08be1742e6d805b316c0d440364854a49e68f
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2015-07-27 19:59:16 CEST
JOGL AWT Components, e.g. GLCanvas or NewtCanvasAWT,
may be reconfigured by moving them to another display/monitor
or by other means.

Since AWT has no means to notify the user code via an event,
JOGL components usually determine the reconfiguration via
the override 'GraphicsConfiguration getGraphicsConfiguration()'.

GLCanvas is sensible to this reconfiguration,
however its AWTGraphicsConfiguration (owned via JAWTWindow)
is not changed.

Implement reconfiguration detection for all JOGL AWT Components
and update the AWTGraphicsConfiguration if required.

For now, constraint reconfiguration on GraphicsDevice change
as currently implemented in GLCanvas.

The updated AWTGraphicsConfiguration allows using the updated 
GraphicsDevice as it might be required for further information,
e.g. pixel-scale on OSX.
Comment 1 Sven Gothel 2015-07-27 20:00:51 CEST
commit 6ae08be1742e6d805b316c0d440364854a49e68f

implemented as described.