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:
parent
290bbdda14
commit
1610041e3c
5 changed files with 993 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue