I'm using OGRE 1.8 with the D3D9 RenderSystem, and when I create my application window, it is always spawned on the secondary monitor when 2 monitors are available. I've reproduced this on 2 other machines with a dual-monitor setup. My previous project, which used OGRE 1.71 didn't have this issue. I know there has been work on the render systems since 1.7, and was wondering if there have been any changes to the code that determines window positioning for this rendersystem. I haven't tested 3+ monitors but I suspect the window would always spawn on the n'th monitor instead of the primary. This is happening both in fullscreen and windowed mode.
I've had a look at OgreD3D9Renderwindow.cpp and couldn't determine the cause. Maybe someone else knows what's going on.
My window creation...
Code: Select all
m_pWindow = m_pOgreRoot->createRenderWindow("title", width, height, isFullscreen);
m_pWindow->setVisible(false);
//Other initialisation...
m_pwindow->setVisible(true);
Nothing fancy here - I'm just using the default window positioning OGRE gives me.
Upon further inspection, it seems RenderWindow::setVisible() is just a stub. I find that strange because I recall being able to show/hide windows a few months ago. It shouldn't have any effect on my problem though.