Login  Register

Re: intent of reqPixelScale in GLCanvas

Posted by Sven Gothel on Apr 15, 2023; 6:38pm
URL: https://forum.jogamp.org/intent-of-reqPixelScale-in-GLCanvas-tp4042430p4042463.html

gbburkhardt wrote
Is it the case that the use of 'reqPixelScale' is still a work in progress?  Using "-pixelScale 1.0" for the demo TestGearsES2NEWT doesn't affect the surface width/height.  I notice it printing this line:

HiDPI PixelScale: 1.0x1.0 (req) -> 1.0x1.0 (val) -> 1.25x1.25 (has)

Is there some demo that shows the expected use of 'setSurfaceScale()'?  I haven't been able to find one.
- didn't your patch override reqSurfaceScale, so it got 'dumped'?

- AFAIK the manual portion of the demos/test-code used it and I manually validated it
  w/ different MacOS settings. So it worked at least on that platform back then.