![]() |
Colorkey in SDL 1.3 | ![]() |
![]() |
![]() |
T-1000
![]() |
![]() |
please, i need help on this... nobody knows how to solve it?
|
||||||||||
|
![]() |
Colorkey in SDL 1.3 | ![]() |
Sam Lantinga
![]() |
![]() |
This should work. Can you post a link to a sample program and images?
On Fri, Dec 17, 2010 at 6:01 AM, T-1000 wrote:
-- -Sam Lantinga, Founder and President, Galaxy Gameworks LLC |
||||||||||||
|
![]() |
Colorkey in SDL 1.3 | ![]() |
T-1000
![]() |
![]() |
Hi there.
Attached is a mini sample program where i have the problem. There are 3 files, the code itself, the sprite and the compile script. regards! El 04/01/11 08:11, Sam Lantinga escribió:
|
||||||||||||||||
|
![]() |
![]() |
T-1000
![]() |
![]() |
mmm the atachments are in te email to the mailing list... here's the code:
i compile it with
and the sprite uses the firts pixel color as a colorkey |
||||||||||||||
|
![]() |
![]() |
Nathaniel J Fries
![]() |
![]() |
I've also experienced this issue.
My workaround was to blit to a temporary RGBA surface with the same dimensions and all pixels set to 0 alpha, then create the texture from that. This works, but is not ideal. |
||||||||||
|
![]() |
![]() |
Nathaniel J Fries
![]() |
![]() |
The flaw appears to be in how SDL_ConvertSurface is called by SDL_CreateTextureFromSurface.
To convert with the color key, SDL_COPY_COLORKEY needs to be passed for flags. Not a tested bugfix, just something apparent from the code. |
||||||||||
|
![]() |
Colorkey in SDL 1.3 | ![]() |
Sam Lantinga
![]() |
![]() |
Hahah, I ran into this bug today and fixed it independently.
Try the latest snapshot: http://www.libsdl.org/tmp/SDL-1.3.zip See ya! On Fri, Dec 17, 2010 at 6:01 AM, T-1000 wrote:
-- -Sam Lantinga, Founder and President, Galaxy Gameworks LLC |
||||||||||||
|