Featured contribution

Top  Previous  Next

Detect all the possible video resolutions

 

This time we've got an awesome contribution from Djfeeler; it's a snippet that detects all the possible video resolutions that are supported by your video card + monitor combination and dumps them to a resolution.txt file, thus allowing your customers to set the desired resolution no matter if they've got older or newer PCs, 4:3 or 16:9 monitors, etc.

 

I have included a videores.c script which contains all the needed code, so all you have to do is to run it; then, exit the engine and you will discover a newly created resolution.txt file which should contain something like this:

 

aum99_exq1

 

The code is easy to understand, so you shouldn't have any problems implementing it in your own projects. Thank you a lot for this great contribution, Djfeeler!