-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|730|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> Graphical Effects


 
Blitz3Dman
Created : 05 May 2007
Edited : 05 May 2007
Language : Blitz

Available resolutions

a handy little program

Ever wondered what resolutions were good on your computer? Here's a program that tells you all the graphics modes you can go into full screen with, and the ones that your driver supports.


 

Comments


Saturday, 05 May 2007, 11:04
Paul
Here's a version from the helpfile, I think it does the same thing ;P
Both work though

Saturday, 05 May 2007, 11:08
Blitz3Dman
Oops... well, that doesn't work in BB2D, does it?
Saturday, 05 May 2007, 11:40
JL235
It would also probably be better to store all the resolutions you'd want the user to be able to chose from and then test those. For example, it'd be rare that I would want the user to be using a resolution below 640x480 (even then I'd prefer 800x600 to be the minimum).

You could then take it a step further and sub-divide them into aspect ratios. My monitor is 16:10, so I'd prefer to be able to omit all other aspect ratios. I believe Half Life 2 does that.
Saturday, 05 May 2007, 14:59
Paul
DiablosDevil, have you tried the help code's approach?
If so, did it give you all resolutions your screen could handle or all resolutions your card would take?
Sunday, 06 May 2007, 09:38
steve_ancell
@Blitz3Dman...
Oops... well, that doesn't work in BB2D, does it?


Nope !... But this one does :-


Sunday, 06 May 2007, 11:36
Paul
Hi again

This is what i meant.

Sunday, 06 May 2007, 13:08
JL235
All I can say is that the highest resolution given is the same as my monitors highest resolution. 1440x900. I do not know if this is my graphics cards highest too.

But I really liked your code Paul.
Wednesday, 09 May 2007, 12:12
Paul
thx, just to finish this off a little code that checks your current resolution and gets all the resolutions... whatever just try the code.

btw, it needs the user32.decels and dll.
--user32.decels--

.lib "user32.dll"
GetSystemMetrics% (nIndex%) : "api_GetSystemMetrics"