setFullscreen doesn't work with the DK2
Posted by elect on May 12, 2015; 8:52am
URL: https://forum.jogamp.org/setFullscreen-doesn-t-work-with-the-DK2-tp4034465.html
I just tried on win 8.1, last nv drivers, jogl 2.3.1
When I set the fullscreen on the Oculus (dk2) it doesnt really go to fullscreen, but a smaller resolution on the upper right corner
I pick the oculus in this way (always worked so far)
for (MonitorDevice monitorDevice : screen.getMonitorDevices()) {
MonitorMode monitorMode = monitorDevice.getSupportedModes().get(0);
if (monitorMode.getId() == 0
&& monitorMode.getSizeAndRRate().surfaceSize.getResolution().getWidth() == 1080
&& monitorMode.getSizeAndRRate().surfaceSize.getResolution().getHeight() == 1920
&& monitorMode.getSizeAndRRate().surfaceSize.getBitsPerPixel() == 32
&& monitorMode.getSizeAndRRate().refreshRate == 75.0
&& MonitorMode.SizeAndRRate.flags2String(monitorMode.getSizeAndRRate().flags).toString().isEmpty()
&& monitorMode.getRotation() == 0
// && monitorDevice.getSupportedModes().size() == 440
) {
return screen.getMonitorDevices().indexOf(monitorDevice);
}
}
and then the returned index is used to get the right monitorDevice and add it to the (empty) monitorDevices arrayList
screen.addReference();
monitorDevices = new ArrayList<>();
monitorDevices.add(screen.getMonitorDevices().get(OculusFinder.getBestHdm(screen)));
And then when I need the fullscreen on the oculus, I was used to call
glWindow.setFullscreen(monitorDevices);
Any idea?