Implemented SDL_GetDisplayName() for X11, which requires the XRandR extension.

It turns out there's all kinds of good information in the EDID data for a monitor...
This commit is contained in:
Sam Lantinga 2012-12-31 18:32:30 -08:00
parent 290bbdda14
commit 1610041e3c
5 changed files with 993 additions and 2 deletions

View file

@ -674,7 +674,7 @@ SDLTest_CommonInit(SDLTest_CommonState * state)
n = SDL_GetNumVideoDisplays();
fprintf(stderr, "Number of displays: %d\n", n);
for (i = 0; i < n; ++i) {
fprintf(stderr, "Display %d:\n", i);
fprintf(stderr, "Display %d: %s\n", i, SDL_GetDisplayName(i));
SDL_zero(bounds);
SDL_GetDisplayBounds(i, &bounds);