소스 검색

Fixed missing error messages for SDL_GetWindowWMInfo().

Philipp Wiesemann 9 년 전
부모
커밋
fbd30c363d
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/video/directfb/SDL_DirectFB_window.c
  2. 1 0
      src/video/wayland/SDL_waylandwindow.c

+ 1 - 0
src/video/directfb/SDL_DirectFB_window.c

@@ -477,6 +477,7 @@ DirectFB_GetWindowWMInfo(_THIS, SDL_Window * window,
        maybe by forcing SDL_VIDEODRIVER=x11. */
     if (version < 2000006) {
         info->subsystem = SDL_SYSWM_UNKNOWN;
+        SDL_SetError("Version must be 2.0.6 or newer");
         return SDL_FALSE;
     }
 

+ 1 - 0
src/video/wayland/SDL_waylandwindow.c

@@ -145,6 +145,7 @@ Wayland_GetWindowWMInfo(_THIS, SDL_Window * window, SDL_SysWMinfo * info)
        maybe by forcing SDL_VIDEODRIVER=x11. */
     if (version < 2000006) {
         info->subsystem = SDL_SYSWM_UNKNOWN;
+        SDL_SetError("Version must be 2.0.6 or newer");
         return SDL_FALSE;
     }