Fixed missing error messages for SDL_GetWindowWMInfo().
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 11 Jun 2017 22:30:39 +0200
changeset 110929c9b7b7e46e1
parent 11091 4f02bf4b6d75
child 11093 b6f52c4d56c6
Fixed missing error messages for SDL_GetWindowWMInfo().
src/video/directfb/SDL_DirectFB_window.c
src/video/wayland/SDL_waylandwindow.c
     1.1 --- a/src/video/directfb/SDL_DirectFB_window.c	Sun Jun 11 22:30:24 2017 +0200
     1.2 +++ b/src/video/directfb/SDL_DirectFB_window.c	Sun Jun 11 22:30:39 2017 +0200
     1.3 @@ -477,6 +477,7 @@
     1.4         maybe by forcing SDL_VIDEODRIVER=x11. */
     1.5      if (version < 2000006) {
     1.6          info->subsystem = SDL_SYSWM_UNKNOWN;
     1.7 +        SDL_SetError("Version must be 2.0.6 or newer");
     1.8          return SDL_FALSE;
     1.9      }
    1.10  
     2.1 --- a/src/video/wayland/SDL_waylandwindow.c	Sun Jun 11 22:30:24 2017 +0200
     2.2 +++ b/src/video/wayland/SDL_waylandwindow.c	Sun Jun 11 22:30:39 2017 +0200
     2.3 @@ -145,6 +145,7 @@
     2.4         maybe by forcing SDL_VIDEODRIVER=x11. */
     2.5      if (version < 2000006) {
     2.6          info->subsystem = SDL_SYSWM_UNKNOWN;
     2.7 +        SDL_SetError("Version must be 2.0.6 or newer");
     2.8          return SDL_FALSE;
     2.9      }
    2.10