12-03-2004, 04:23 AM
after spending 10 minets trying to get SDL_MapRGB to work and getting error from FBC everytime i tryed to do it i decide to look over the sdlvedio.bi and compare it to SDL_video.h this was sparked by victors post saying the SLDunlock alias was wrong so i though mybe my problems where in the .bi file again so. this is what i found
extern DECLSPEC Uint32 SDLCALL SDL_MapRGB
(SDL_PixelFormat *format, Uint8 r, Uint8 g, Uint8 b);
C/C++ header decluration
declare function SDL_MapRGB cdecl alias "SDL_MapRGB" ( byref format as SDL_PixelFormat, byval r as ubyte, byval g as ubyte, byval b as ubyte ) as uinteger
See any problems ? format as SDL_Pixelformat isn't declared as a pointer.
( i haven't test this so i might be jumping the gun here and got this all screwed up. oh ya SDLMapRGBA is decleared the same way)
extern DECLSPEC Uint32 SDLCALL SDL_MapRGB
(SDL_PixelFormat *format, Uint8 r, Uint8 g, Uint8 b);
C/C++ header decluration
declare function SDL_MapRGB cdecl alias "SDL_MapRGB" ( byref format as SDL_PixelFormat, byval r as ubyte, byval g as ubyte, byval b as ubyte ) as uinteger
See any problems ? format as SDL_Pixelformat isn't declared as a pointer.
( i haven't test this so i might be jumping the gun here and got this all screwed up. oh ya SDLMapRGBA is decleared the same way)