The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
how can I get the native screen resolution sdl2.0
ZiLot


Joined: 25 Jul 2014
Posts: 1
Hello! First time posting here.
So I searched how to get the native screen resolution and only found answer for sdl1.2 that can't work with sdl2 and different way that doesn't involve SDL library. Is there any way to do it with sdl2.0 ?

thank you in advance
how can I get the native screen resolution sdl2.0
Sik


Joined: 26 Nov 2011
Posts: 905
Depends on what you want.

Resolution of the entire desktop:
SDL_GetDesktopDisplayMode

Resolution of a specific monitor:
SDL_GetCurrentDisplayMode
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org