video: Fix false positives in driver name comparison

Without this change, driver names don't get matched correctly;
for example "x" can get matched with "x11" since it only checks
whether the string matches up to the length of the requested
driver name.
1 file changed
tree: 9414037986b56b72199586b1f93d46adc6a4c764
  1. .github/
  2. acinclude/
  3. android-project/
  4. android-project-ant/
  5. build-scripts/
  6. cmake/
  7. debian/
  8. docs/
  9. include/
  10. src/
  11. test/
  12. VisualC/
  13. VisualC-WinRT/
  14. visualtest/
  15. wayland-protocols/
  16. Xcode/
  17. Xcode-iOS/
  18. .gitignore
  19. Android.mk
  20. autogen.sh
  21. BUGS.txt
  22. cmake_uninstall.cmake.in
  23. CMakeLists.txt
  24. configure
  25. configure.ac
  26. CREDITS.txt
  27. INSTALL.txt
  28. LICENSE.txt
  29. Makefile.in
  30. Makefile.minimal
  31. Makefile.os2
  32. Makefile.pandora
  33. Makefile.psp
  34. Makefile.wiz
  35. README-SDL.txt
  36. README.md
  37. sdl2-config-version.cmake.in
  38. sdl2-config.cmake.in
  39. sdl2-config.in
  40. sdl2.m4
  41. sdl2.pc.in
  42. SDL2.spec.in
  43. SDL2Config.cmake
  44. TODO.txt
  45. WhatsNew.txt
README.md

Simple DirectMedia Layer (SDL) Version 2.0

https://www.libsdl.org/

Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. It is used by video playback software, emulators, and popular games including Valve's award winning catalog and many Humble Bundle games.

More extensive documentation is available in the docs directory, starting with README.md

Enjoy!

Sam Lantinga (slouken@libsdl.org)