[SDL] SDL (1.2.6) CPU identification bug
seebs at plethora.net
Sun Nov 23 12:50:01 PST 2003
Given this code:
Can anybody tell me WHY black pixels still do not get masked out? Both
surfaces are of the same format as far as I can determine. I. E. I want
"black" (RGB8 0,0,0) pixels NOT to be blitted from buttons[OK_BUT_PRESSED] to
surface, so I can use non-rectangular images.
I create "surface" like this:
surface = SDL_SetVideoMode(xsize,ysize,16,SDL_SWSURFACE);
and buttons[OK_BUT_PRESSED] is loaded from a .JPEG file, which has its
transparent areas set to RGB8 0,0,0 using the GIMP.
Any ideas anyone? Pointers to where I can get example code showing how to
implement totally transparent pixels in a source surface?
Potchefstroom Public Safety Dept.
Republic of South Africa
"We want you to be soldiers - deadly as long as you have one leg or one arm
and you are still alive."
- R. A. H. in Starship Troopers
More information about the SDL