Bug 1322 - JOGL sets pixel scale to 2 for GLJPanel not on Retina display
Summary: JOGL sets pixel scale to 2 for GLJPanel not on Retina display
Alias: None
Product: Jogl
Classification: JogAmp
Component: macosx (show other bugs)
Version: 2.5.0
Hardware: All macosx
: P4 normal
Assignee: Sven Gothel
Depends on:
Blocks: 1373
  Show dependency treegraph
Reported: 2016-07-28 22:07 CEST by Andy Skinner
Modified: 2023-07-12 01:14 CEST (History)
0 users

See Also:
SCM Refs:
Workaround: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Andy Skinner 2016-07-28 22:07:43 CEST
We use a GLJPanel.  I'm running on a Mac laptop with Retina display, and an external non-Retina display.  When I put my GLJPanel on the external display and close the laptop cover, everything from the laptop display moves over to the external one.  The GLJPanel gets displayed.

When I open the cover again, I get a reshape (twice as big as if the GLJPanel were on the Retina display) and then a display, then it gets reshaped back to its original size. Sometimes I see a flash of junk drawn in the GLJPanel.

When I turn on debug logs, I see that setNewPixelScale for the GLJPanel, which is why it gets reshaped temporarily to twice the size.  I don't know why this happens.

I may be able to investigate further in a couple of weeks, but I thought I'd report it in the meantime.  I will try with a short standalone JOGL program.

Comment 1 Sven Gothel 2023-07-12 01:14:43 CEST
Resolution addressed in commit referenced in Bug 1373 comment 5 etc