Browse Source

Fixed for Linux.

Brucey 3 years ago
parent
commit
63631d7ea0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      sdlvideo.mod/glue.c

+ 2 - 2
sdlvideo.mod/glue.c

@@ -308,11 +308,11 @@ void * bmx_sdl_video_GetWindowDisplayHandle(SDL_Window * window) {
 		switch (info.subsystem) {
 		switch (info.subsystem) {
 #ifdef SDL_VIDEO_DRIVER_X11
 #ifdef SDL_VIDEO_DRIVER_X11
 			case SDL_SYSWM_X11:
 			case SDL_SYSWM_X11:
-				return info.x11.display;
+				return info.info.x11.display;
 #endif
 #endif
 #ifdef SDL_VIDEO_DRIVER_WAYLAND
 #ifdef SDL_VIDEO_DRIVER_WAYLAND
 			case SDL_SYSWM_WAYLAND:
 			case SDL_SYSWM_WAYLAND:
-				return info.wl.display;
+				return info.info.wl.display;
 #endif
 #endif
 		}
 		}
 	}
 	}