Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by M_D. 04/26/24 20:22
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (M_D, AndrewAMD, Quad, Ayumi), 806 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Fullscreen Behavior (allow on secondary display) #212631
06/23/08 14:29
06/23/08 14:29
Joined: Mar 2007
Posts: 197
Y
yorisimo Offline OP
Member
yorisimo  Offline OP
Member
Y

Joined: Mar 2007
Posts: 197
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.


Joris Lambrecht
My Contributions: Relative Rotation, Window Sizing
Re: Fullscreen Behavior (allow on secondary display) [Re: yorisimo] #212801
06/24/08 09:02
06/24/08 09:02
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
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.

Re: Fullscreen Behavior (allow on secondary display) [Re: jcl] #213702
06/30/08 09:00
06/30/08 09:00
Joined: Sep 2007
Posts: 48
Deutschland
H
HoopyDerFrood Offline
Newbie
HoopyDerFrood  Offline
Newbie
H

Joined: Sep 2007
Posts: 48
Deutschland
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?

Re: Fullscreen Behavior (allow on secondary display) [Re: HoopyDerFrood] #213730
06/30/08 11:43
06/30/08 11:43
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
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.

Re: Fullscreen Behavior (allow on secondary display) [Re: jcl] #213738
06/30/08 11:56
06/30/08 11:56

M
mercuryus
Unregistered
mercuryus
Unregistered
M




Re: Fullscreen Behavior (allow on secondary display) [Re: jcl] #213778
06/30/08 20:24
06/30/08 20:24
Joined: Mar 2007
Posts: 197
Y
yorisimo Offline OP
Member
yorisimo  Offline OP
Member
Y

Joined: Mar 2007
Posts: 197
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!


Joris Lambrecht
My Contributions: Relative Rotation, Window Sizing
Re: Fullscreen Behavior (allow on secondary display) [Re: yorisimo] #213840
07/01/08 07:32
07/01/08 07:32
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
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.

Re: Fullscreen Behavior (allow on secondary display) [Re: Joey] #213876
07/01/08 11:04
07/01/08 11:04
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
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.

Re: Fullscreen Behavior (allow on secondary display) [Re: Joey] #213900
07/01/08 13:14
07/01/08 13:14
Joined: Mar 2007
Posts: 197
Y
yorisimo Offline OP
Member
yorisimo  Offline OP
Member
Y

Joined: Mar 2007
Posts: 197
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


Joris Lambrecht
My Contributions: Relative Rotation, Window Sizing
Re: Fullscreen Behavior (allow on secondary display) [Re: HoopyDerFrood] #235024
11/05/08 16:58
11/05/08 16:58
Joined: Mar 2007
Posts: 197
Y
yorisimo Offline OP
Member
yorisimo  Offline OP
Member
Y

Joined: Mar 2007
Posts: 197
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


Joris Lambrecht
My Contributions: Relative Rotation, Window Sizing

Moderated by  aztec, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1