Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, degenerate_762, ozgur), 1,311 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | 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