Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Crossplatform way to change screen resolution

Tags:

Is there any crossplatform way (Windows, Linux, MacOSX) to change screen resolution? Neither Java nor .Net-Mono can do it. Only through native API invocation. It's very strange situation: there are clear (managed) methods to obtain screen resolution, but method for setting is absent. Is this feature very dangerous or complicated? Does any other crossplatform system (Parrot, RealBasic etc.) do this?

like image 635
macropas Avatar asked Feb 17 '09 06:02

macropas


1 Answers

I'm not sure if you're using libSDL, but check this out: http://docs.huihoo.com/sdl/1.2/sdlsetvideomode.html

PS Oh, by the way, if didn't already know, LibSDL is a cross-platform library intended primarily for games. http://www.libsdl.org/

like image 173
supercheetah Avatar answered Oct 16 '22 16:10

supercheetah