Troubleshooting
This commit is contained in:
7
check_sdl.py
Normal file
7
check_sdl.py
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import ctypes
|
||||||
|
sdl = ctypes.CDLL('libSDL2-2.0.so.0')
|
||||||
|
sdl.SDL_GetVideoDriver.restype = ctypes.c_char_p
|
||||||
|
n = sdl.SDL_GetNumVideoDrivers()
|
||||||
|
print('Available SDL2 drivers:')
|
||||||
|
for i in range(n):
|
||||||
|
print(' ', sdl.SDL_GetVideoDriver(i).decode())
|
||||||
Reference in New Issue
Block a user