Gamestudio Links
Zorro Links
Newest Posts
Avoiding pop-up training parameter results
by Martin_HH. 09/16/26 21:31
What are you working on?
by rayp. 09/16/26 20:20
Future of ZorroHFT
by TipmyPip. 09/16/26 09:28
Fun Arcade Car Physics (nfs style)
by rayp. 09/16/26 05:23
How to Choose a Free Cataract Surgery Centre in Delhi?
by lokkalyansamiti. 09/15/26 08:27
Blind Zorro Window
by Martin_HH. 09/13/26 13:20
Parent/child object
by 3run. 09/11/26 06:21
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (3run, Martin_HH, TipmyPip), 1,598 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
lokkalyansamiti, rahulbuilds, speedx, liop, Bauer097
19235 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