Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed missing error messages for SDL_GetWindowWMInfo().
  • Loading branch information
philippwiesemann committed Jun 11, 2017
1 parent c609d85 commit fbd30c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/video/directfb/SDL_DirectFB_window.c
Expand Up @@ -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;
}

Expand Down
1 change: 1 addition & 0 deletions src/video/wayland/SDL_waylandwindow.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit fbd30c3

Please sign in to comment.