mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-05 09:26:25 +00:00
@@ -218,11 +218,17 @@ KMSDRM_CreateDevice(void)
|
||||
SDL_VideoDevice *device;
|
||||
SDL_VideoData *viddata;
|
||||
int devindex = 0; /* !!! FIXME: let app/user specify this. */
|
||||
const char *hint;
|
||||
|
||||
if (!KMSDRM_Available()) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
hint = SDL_GetHint(SDL_HINT_KMSDRM_DEVICE_INDEX);
|
||||
if (hint) {
|
||||
devindex = SDL_atoi(hint);
|
||||
}
|
||||
|
||||
if (!devindex || (devindex > 99)) {
|
||||
devindex = get_driindex();
|
||||
}
|
||||
|
Reference in New Issue
Block a user