I am not intimately familiar with JOGL initialization, but while trying to figure out why the display window in current Processing (with JOGL 2.3.2) isn't centered, I came across this, on a Raspberry Pi w/ the binary driver:
screen.getWidth() returns 1920 (expected)
screen.getHeight() returns 1080 (expected)
MonitorDevice.getViewportInWindowUnits().getWidth() returns 1920 (expected)
MonitorDevice.getViewportInWindowUnits().getHeight() returns 1920
Is this the expected behavior?
If you want to probe this yourself: PSurfaceJOGL.java:311 in current processing.git
please check if your /boot/config.txt contains overscan settings
The use of overscan settings is one potential source of misalignment between the DispmanX window and X11.
When I have tested JogAmp on the Rapberry Pi i have been using
Using this configuration running a processing setch with fullScreen(P3D); is centered.
Please attach a photo screenshot to help us understand what is not centered on your Pi.
Created attachment 765 [details]
Screenshot on Raspbian Jesse
Happens with or without overscan. Please let me know if I can do anything else.
I believe https://github.com/sgothel/jogl/pull/97 will address this. Will test when I get to it!
The first commit message line of the patch can be changed to include the bug number like this:
Bug 1254: Fix viewport height in BCM VC IV ScreenDriver
The patch itself looks fine; Good find!
Pushed out as: https://github.com/gohai/jogl/commit/57b519c3788bec2fa3c3575db6deadeb153352f7