|
|
|
@ -510,8 +510,9 @@ DFhackCExport void * SDL_DisplayFormat(void *surface)
|
|
|
|
|
return _SDL_DisplayFormat(surface);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// SDL_Surface *SDL_DisplayFormatAlpha(SDL_Surface *surface);
|
|
|
|
|
static void * (*_SDL_DisplayFormatAlpha)( void * surface ) = 0;
|
|
|
|
|
DFhackCExport void * SDL_DisplayFormatAplha(void *surface)
|
|
|
|
|
DFhackCExport void * SDL_DisplayFormatAlpha(void *surface)
|
|
|
|
|
{
|
|
|
|
|
return _SDL_DisplayFormatAlpha(surface);
|
|
|
|
|
}
|
|
|
|
@ -904,6 +905,7 @@ bool FirstCall()
|
|
|
|
|
_SDL_GetVideoSurface = (void*(*)())GetProcAddress(realSDLlib,"SDL_GetVideoSurface");
|
|
|
|
|
_SDL_DisplayFormat = (void * (*) (void *))GetProcAddress(realSDLlib,"SDL_DisplayFormat");
|
|
|
|
|
_SDL_DisplayFormatAlpha = (void * (*) (void *))GetProcAddress(realSDLlib,"SDL_DisplayFormatAlpha");
|
|
|
|
|
_SDL_GetRGBA = (void (*) (uint32_t, void *, uint8_t *, uint8_t *, uint8_t *, uint8_t *))GetProcAddress(realSDLlib,"SDL_GetRGBA");
|
|
|
|
|
_SDL_FreeSurface = (void (*)(void*))GetProcAddress(realSDLlib,"SDL_FreeSurface");
|
|
|
|
|
_SDL_GL_GetAttribute = (int (*)(int, int*))GetProcAddress(realSDLlib,"SDL_GL_GetAttribute");
|
|
|
|
|
_SDL_GL_SetAttribute = (int (*)(int, int))GetProcAddress(realSDLlib,"SDL_GL_SetAttribute");
|
|
|
|
|