Version of 0.9.x for Visual C++ 5?

Dodgy Geezer wrote:

I’m trying to load a 24bit bitmap tile to blit to the screen with the
following code:

image = SDL_LoadBMP(“c:\data\tile001.bmp”);
dest.y = 0;
dest.w = image->w;
dest.h = image->h;

SDL_BlitSurface(image, NULL, screen, &dest);
SDL_Flip(screen);

but when the tile appears on the screen, the colours are all wrong. What
extra work do I have to do for 16/24 bit colour?

thanks
mike

hey…I had this problem too! Any version beyond 8.5 suffered from this
problem…so…I have to do my development using 0.8.5! Um…it consisted of
loading a 24 bit bitmap, using Convert_Surface to convert it, and then
mapping / blitting (Sam: You don’t need to tell me 0.9.x doesn’t need mapping
:), I’ve heard it too many times), the colors were all screwed up. Really
bad. Possibly a conversion problem? It seems to be mostly targeted toward the
Load_BMP function…

Hmm…later,

Paul Lowe
xpaull at ultraviolet.org

Is there a version of SDL 0.9x for Visual c++ 5 available for download? I
want to take advantage of the improved surface features (ie the mapping is
done for me :wink: ).

Is there a version of SDL 0.9x for Visual c++ 5 available for download? I
want to take advantage of the improved surface features (ie the mapping is
done for me :wink: ).

There are no precompiled binaries (yet)
If you want, you can download the source code and follow the instructions
in README.VisualC to build your own sdllib.lib
If you do, I’d appreciate it if you send me a copy in private e-mail.

Paulus has found some problems using the precompiled SDL libraries with
the multi-threaded versions of the MSVC libraries, and is working on a
solution.

See ya!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/

In the readme file for compiling the source for Visual c++, it states that

  • you’ll need a current DLL (doesn’t have to be exactly the same version)

From what I’ve seen, you do need to use the same version of the dll,
otherwise your program won’t run.

cheers
Mike

In the readme file for compiling the source for Visual c++, it states that

  • you’ll need a current DLL (doesn’t have to be exactly the same version)

From what I’ve seen, you do need to use the same version of the dll,
otherwise your program won’t run.

This is true for 0.9.x only, because the API may change between minor
versions. If you use 0.8.x, the API is guaranteed not to change, and
you can use an older version of sdllib.lib with a newer DLL.

SDL will never quit if it detects a version mismatch, it just warns
you so that if it crashes, you’ll know why. It may fail to load all
the symbols it knows about though, if a function has been added or
removed.

See ya!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/

I’m trying to load a 24bit bitmap tile to blit to the screen with the
following code:

image = SDL_LoadBMP(“c:\data\tile001.bmp”);
dest.y = 0;
dest.w = image->w;
dest.h = image->h;

SDL_BlitSurface(image, NULL, screen, &dest);
SDL_Flip(screen);

but when the tile appears on the screen, the colours are all wrong. What
extra work do I have to do for 16/24 bit colour?

thanks
mike

hey

I just sent Sam the 0.9.8 static library for VC5.
However, it shouldn’t be that hard to compile it yourself :slight_smile:

I also sent him a new project file with support for the multithreadded-dll
compile option (multithreaded-static works with the normal version).

see you
~ Paulus (@Paulus_Esterhazy)

This should be fixed in the latest CVS snapshot.

Dodgy Geezer wrote:

I’m trying to load a 24bit bitmap tile to blit to the screen with the
following code:

image = SDL_LoadBMP(“c:\data\tile001.bmp”);
dest.y = 0;
dest.w = image->w;
dest.h = image->h;

SDL_BlitSurface(image, NULL, screen, &dest);
SDL_Flip(screen);

but when the tile appears on the screen, the colours are all wrong. What
extra work do I have to do for 16/24 bit colour?

thanks
mike

hey…I had this problem too! Any version beyond 8.5 suffered from this
problem…so…I have to do my development using 0.8.5! Um…it consisted of
loading a 24 bit bitmap, using Convert_Surface to convert it, and then
mapping / blitting (Sam: You don’t need to tell me 0.9.x doesn’t need mapping
:), I’ve heard it too many times), the colors were all screwed up. Really
bad. Possibly a conversion problem? It seems to be mostly targeted toward the
Load_BMP function…

Hmm…later,

Paul Lowe
xpaull at ultraviolet.org

See ya!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/