I’m working on an application that does video tracking and renders the video to an OpenGL component. In one particular situation, it’s really useful for people to see only the OpenGL component stretched across the entire screen with no menu bars, i.e. in kiosk mode. I’ve read all of the other posts about how to launch a component in full screen mode, and I’ve tried all of the posted alternatives. And I can get the OpenGL component to stretch into full screen mode, but it doesn’t render correctly in full screen mode.
When I’ve tried using the following code (or some variation of it), it flickered like crazy between the component and the main Juce application.
getPeer()->setFullScreen( true );
setBounds( Desktop::getInstance().getMainMonitorArea(false) );
When I tried using this alternative code block, it no longer flickered (thankfully). But it only shows the full screen component after you minimize all other windows, and even then, it doesn’t render the component correctly. Some parts of the image are rendered twice in slightly shifted positions:
I’ve run out of ideas of things to try to fix this problem. If anyone has any suggestions, I would appreciate it.