Login  Register

Re: Retina support in OSX?

Posted by runiter on Oct 08, 2015; 5:33pm
URL: https://forum.jogamp.org/Retina-support-in-OSX-tp4029248p4035439.html

gouessej wrote
You should have used com.jogamp.nativewindow.ScalableSurface.IDENTITY_PIXELSCALE, it's mentioned in the bug report.
Thanks gouessej,
Your suggestion worked great. I just assumed that surfaceScale is set to IDENTITY by default so I didn't even bother trying passing that arguement. But the following indeed worked:

((JoglSwingCanvas)canvas).setSurfaceScale(new float[] {ScalableSurface.IDENTITY_PIXELSCALE, ScalableSurface.IDENTITY_PIXELSCALE});

My question is, why not set SurfaceScale to IDENTITY_PIXELSCALE by default to fix this issue for all Ardor3D programmers without any direct intervention by them?
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D