Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 16,302 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
full screen issues #432547
11/07/13 21:42
11/07/13 21:42
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline OP
Senior Member
xbox  Offline OP
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
I'm at the point in my game where I'm getting ready to share it with some friends to test it, but I realized they might have a different screen resolution than I have. Right now, my game is set up with
Code:
video_set(1366,768, 0, 1);


If I don't know what their screen resolution is, how can I automatically detect it? I thought I could use screen_size.x and screen_size.y to grab the monitors resolution but apparently those are defined when I use the code above. I've been reading the manual looking at video_switch and video_mode but I'm not getting anywhere.

Re: full screen issues [Re: xbox] #432548
11/07/13 22:06
11/07/13 22:06
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
just one line laugh

video_set(sys_metrics(0), sys_metrics(1), 0, 1);


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: full screen issues [Re: sivan] #432549
11/07/13 22:18
11/07/13 22:18
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline OP
Senior Member
xbox  Offline OP
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
okay, didn't know about sys_metrics. However, that line throws a syntax error

never mind, forget what I just said. I was playing with the line before it and forgot the semicolon. *facepalm* grin It works though. Thank you so much!

Last edited by xbox; 11/07/13 22:52.

Gamestudio download | 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