mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-06 01:46:25 +00:00
kmsdrm: let device indexes be > 2 digits.
This commit is contained in:
@@ -82,7 +82,7 @@ get_driindex(void)
|
||||
hint = SDL_GetHint(SDL_HINT_KMSDRM_DEVICE_INDEX);
|
||||
if (hint) {
|
||||
const int idx = SDL_atoi(hint);
|
||||
if ((idx >= 0) && (idx < 99)) {
|
||||
if (idx >= 0) {
|
||||
return idx; /* we'll take the user's request here. */
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user