()
return None
Bind smooth-zoom function.
Bind smooth-zoom function.
Bind smooth - zoom function .
def _bind_gfx_zoomsurface():
    """Bind smooth-zoom function."""
    global sdlgfx
    # look for SDL2_gfx.dll:
    # first in SDL2.dll location
    # if not found, in LIB_DIR; then in standard search path
    try:
        sdlgfx = sdl2.DLL('SDL2_gfx', GFX_NAMES, os.path.dirname(sdl2.dll.libfile))
    except Exception:
        try:
            sdlgfx = sdl2.DLL('SDL2_gfx', GFX_NAMES, LIB_DIR)
        except Exception:
            try:
                sdlgfx = sdl2.DLL('SDL2_gfx', GFX_NAMES)
            except Exception:
                sdlgfx = None
    if sdlgfx:
        return sdlgfx.bind_function(
            'zoomSurface',
            [ctypes.POINTER(sdl2.SDL_Surface), ctypes.c_double, ctypes.c_double, ctypes.c_int],
            ctypes.POINTER(sdl2.SDL_Surface)
        )
    return None
def _bind_gfx_zoomsurface ( ) : global sdlgfx # look for SDL2_gfx.dll: # first in SDL2.dll location # if not found, in LIB_DIR; then in standard search path try : sdlgfx = sdl2 . DLL ( 'SDL2_gfx' , GFX_NAMES , os . path . dirname ( sdl2 . dll . libfile ) ) except Exception : try : sdlgfx = sdl2 . DLL ( 'SDL2_gfx' , GFX_NAMES , LIB_DIR ) except Exception : try : sdlgfx = sdl2 . DLL ( 'SDL2_gfx' , GFX_NAMES ) except Exception : sdlgfx = None if sdlgfx : return sdlgfx . bind_function ( 'zoomSurface' , [ ctypes . POINTER ( sdl2 . SDL_Surface ) , ctypes . c_double , ctypes . c_double , ctypes . c_int ] , ctypes . POINTER ( sdl2 . SDL_Surface ) ) return None