Skip to main content
gamedev.net
🔒 Locked

Screen resolution

Started by Obbedemus 0 replies 650+ views
Original Post
Obbedemus
Obbedemus
I'm writing a program in SDL and messing a little with the window size, and noticed that if the window size is greater than the screen resolution and you toggle fullscreen it will crash. So a did a bit of googeling and found a way to get the screen resolution. The problem is, I want to make it cross platform, and this method only works on Windows. Is there a universal way to do this? If not, can someone paste a bit of code for Linux/Unix (not very familiar with it) and for Mac? Thanks!
( /)(O.o)(> <)This is Bunny. Copy him into your signature to help him on his way to world domination.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.