Commit efc93e68514851475beb700bf8d250e11bb32117

Pierre Wendling 2022-09-18T15:17:08

N3DS: Don't set `num_display` by hand. Doing so creates 2 empty displays at the beginning of the list.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/n3ds/SDL_n3dsvideo.c b/src/video/n3ds/SDL_n3dsvideo.c
index e3f79cb..73486e6 100644
--- a/src/video/n3ds/SDL_n3dsvideo.c
+++ b/src/video/n3ds/SDL_n3dsvideo.c
@@ -83,8 +83,6 @@ N3DS_CreateDevice(void)
     device->UpdateWindowFramebuffer = SDL_N3DS_UpdateWindowFramebuffer;
     device->DestroyWindowFramebuffer = SDL_N3DS_DestroyWindowFramebuffer;
 
-    device->num_displays = 2;
-
     device->free = N3DS_DeleteDevice;
 
     return device;