Fullscreen Behavior (allow on secondary display)

Posted By: yorisimo

Fullscreen Behavior (allow on secondary display) - 06/23/08 14:29

Many people now use multiple monitor displays. Windows Media Player goes fullscreen onto the monitor which held most of the pre-fullscreen window. This is convenient because it allows the screen to be on any monitor and still allows access to the start bar.
Posted By: jcl

Re: Fullscreen Behavior (allow on secondary display) - 06/24/08 09:02

For going fullscreen on a second monitor, you need to have the desktop spread over two monitors. Now move the engine window on the second monitor, remove its border, and set its size so that it completely covers the monitor area.
Posted By: HoopyDerFrood

Re: Fullscreen Behavior (allow on secondary display) - 06/30/08 09:00

Sounds possible, but how can I get the scale of the secondary monitor or place the window on a position of this monitor. Is there an engine function available or have I to do this by hand?
Posted By: jcl

Re: Fullscreen Behavior (allow on secondary display) - 06/30/08 11:43

There is no engine function for getting the resolution of the secondary monitor, but if there is a Windows API function for that (I'm not sure), you can just call it from lite-C.
Posted By: Anonymous

Re: Fullscreen Behavior (allow on secondary display) - 06/30/08 11:56

EnumDisplayMonitors
EnumDisplayDevices, EnumDisplaySettings, EnumDisplaySettingsEx
Posted By: yorisimo

Re: Fullscreen Behavior (allow on secondary display) - 06/30/08 20:24

JCL,
I need to actually have fullscreen mode (fps fixed to the monitor frequency) not just the looks of fullscreen mode. I am using a stereoscopic device that requires exactly 60fps. It works well if I'm using fullscreen on the primary moniotr but I'd really like to be able to use the secondary monitor as well. A

I was also wondering why the windows mouse disappears in fullscreen mode (this is not the case for other fullscreen applications like windows media player)
Thanks!
Posted By: Joey

Re: Fullscreen Behavior (allow on secondary display) - 07/01/08 07:32

the windows mouse diappears because of your mouse settings. and then it's not possible to span a normal directx fullscreen "window" (actually in directx it's not really a window anymore) over two devices. you would have to create two viewports for that if i'm not mistaken.
Posted By: jcl

Re: Fullscreen Behavior (allow on secondary display) - 07/01/08 11:04

This depends on the 3D hardware. Some 3D cards support spanning the 3D Window over two monitors.

Windows can't draw its mouse in DirectX fullscreen mode, so you'll need to use your own mouse image.

For a stereoscopic device you'll indeed need real fullscreen mode. This can be implemented. It's too late for the next release, but I'll check if it can make it into the next-but-one.
Posted By: yorisimo

Re: Fullscreen Behavior (allow on secondary display) - 07/01/08 13:14

To clarify (from Joey's point), I do not want the display to span both monitors, I just want to be able to make it fullscreen on either the primary or the secondary monitor.

And thanks JCL for considering this feature for a future release
Posted By: yorisimo

Re: Fullscreen Behavior (allow on secondary display) - 11/05/08 16:58

Use: EnumDisplayMonitors(NULL,NULL,MonitorGetSize,0);

with callback function:
void MonitorGetSize(long hMonitor, long hdcMonitor, RECT* MonitorRect, long dwData){
static int i = 0;
sizex[i] = MonitorRect.right - MonitorRect.left;
sizey[i] = MonitorRect.bottom - MonitorRect.top;
i++;

}

sizex and sizey now hold the x and y dimensions of each monitor
© 2024 lite-C Forums