Get supported screen resolutions

For questions about using Classic.

Post » Mon Dec 29, 2008 11:46 am

How can I get the supported screen resolution list by the graphic card?
Thanks.
B
30
S
15
G
10
Posts: 285
Reputation: 7,144

Post » Mon Dec 29, 2008 4:03 pm

Ah, there's no way of doing this yet - I guess you could let the user choose between the common ones (eg. 1024x768) and the aspect ratio too. The common screen resolutions (like 800x600) are so widely supported I don't think you need to check if they're supported (although it would be good practice if Construct allowed you to).
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630

Post » Thu Jan 01, 2009 11:53 am

And getting current desktop resolution, for doing an aplication in fullscreen? And resizing windows in window mode without rescaling the content like a Windows application?
B
30
S
15
G
10
Posts: 285
Reputation: 7,144

Post » Thu Jan 01, 2009 6:05 pm

Use the system information object to get the screen width and height, and using the system action 'Set display resolution' in windowed mode changes the size of the window.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630

Post » Thu Jan 01, 2009 7:14 pm

Thanks
B
30
S
15
G
10
Posts: 285
Reputation: 7,144


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests