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
should video backend(s) set SDL_VideoDisplay's 'name' field?
DLudwig


Joined: 09 Feb 2012
Posts: 179
Hi,

I am working on some improved display mode code for SDL's WinRT code, and have a question regarding setting up an SDL_VideoDisplay struct.

Should a video backend set SDL_VideoDisplay's name struct to anything in particular? I see code in the SDL-internal function, SDL_AddVideoDisplay that will set this field, if it is unset/NULL. I'm wondering if anything expects these name(s) to be a particular value. Might it be good to set this to some particular value (when SDL's video subsystem is getting initialized)? If so, any thoughts on what to set it to ("WinRT", perhaps)?

Cheers,
-- David L.