Re: Help Solving SDL2 Wrapper Example
- Posted by petelomax Sep 27, 2017
- 1695 views
OK, I downloaded eusdl2.zip and opened sdl2.dll with dependency walker, only to find there is no SDL_BlitSurface entry.
So I downloaded the source code and a quick search revealed, in SDL_surface.h, this little gem:
#define SDL_BlitSurface SDL_UpperBlit
Hence I humbly suggest this may help:
xSDL_BlitSurface = define_c_func(sdl2,"SDL_UpperBlit",{C_POINTER,C_POINTER,C_POINTER,C_POINTER},C_INT)
Pete
PS: a comment along the lines of --NB this is NOT a typo! seems warranted.