searching for nirvana... i'd like to have fullscreen, with an application spanning 2 monitors; the window has 2 viewports (as described here: http://processing.org/discourse/yabb_beta/YaBB.cgi?board=OpenGL;action=display;num=1181318085
)
this is on windows XP
i've tried the technique of having a larger window and positioning it slightly off (as described here under "WINDOWED":
http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Programs;action=display;num=1182293890;start=1#1
but then the window doesn't fill the screen because of the space left for the task bar.
i've tried "Present Mode" but of course that only works with a single monitor
i've tried the usual full screen code applied here:
http://processing.org/discourse/yabb_beta/YaBB.cgi?board=OpenGL;action=display;num=1183320480
but then i only get one monitor working full screen and the other one doesn't appear at all.
finally, i tried editing that code for two monitors, as below, but that had a similar result.
any suggestions....?
Code:
here's my latest code:
void FullscreenOn2()
{
noCursor();
frame.dispose();
frame.setUndecorated( true );
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice[] gs = ge.getScreenDevices();
gs[0].setFullScreenWindow( frame );
if (gs[0].isDisplayChangeSupported())
{
int refreshRate = gs[0].getDisplayMode().getRefreshRate();
int bitDepth = gs[0].getDisplayMode().getBitDepth();
DisplayMode myDisplayMode = new DisplayMode(
gs[0].getDisplayMode().getWidth(), gs[0].getDisplayMode().getHeight(), bitDepth, refreshRate);
gs[0].setDisplayMode( myDisplayMode );
}
gs[1].setFullScreenWindow( frame );
if (gs[1].isDisplayChangeSupported())
{
DisplayMode myDisplayMode = new DisplayMode(
480, 640, 32, DisplayMode.REFRESH_RATE_UNKNOWN);
gs[1].setDisplayMode( myDisplayMode );
}
}
p.s. might an alternative be to have 2 different windows instead of 2 viewports? ... no idea how to go about that though... thanks for any pointers!