   Screen resolution
  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!   
  After a quick google...   