Commit cc982ea7a716edb55eb2a46d3974f9ac0ab8e449

Ryan C. Gordon 2022-07-26T15:43:34

kmsdrm: let device indexes be > 2 digits.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/kmsdrm/SDL_kmsdrmvideo.c b/src/video/kmsdrm/SDL_kmsdrmvideo.c
index 79039ba..b66e715 100644
--- a/src/video/kmsdrm/SDL_kmsdrmvideo.c
+++ b/src/video/kmsdrm/SDL_kmsdrmvideo.c
@@ -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. */
         }
     }