From 0cb5e99a44fb499d116c677cc527ece96ccf3975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sat, 17 Jul 2010 20:13:44 +0200 Subject: [PATCH] Fix for SHM on windows --- library/shm/shms-windows.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/shm/shms-windows.cpp b/library/shm/shms-windows.cpp index 28aa4b15c..1173de74a 100644 --- a/library/shm/shms-windows.cpp +++ b/library/shm/shms-windows.cpp @@ -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");