PSP SDL Transparency

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
Thanhda
Posts: 331
Joined: Sat Apr 09, 2005 2:08 am
Location: Canada
Contact:

PSP SDL Transparency

Post by Thanhda »

Just wondering, how to set transparency in psp sdl. is it different then how to do it in windows.

Usually this line of code works. but doesnt seem to in psp

Code: Select all

SDL_SetColorKey( g_image2, SDL_SRCCOLORKEY, SDL_MapRGB( g_image2->format, 255, 0, 255 ) );
There are 10 types of people in the world: Those who understand binary, and those who don't...
Garak
Posts: 46
Joined: Wed Jul 27, 2005 1:59 am

Post by Garak »

What you have looks good to me...

If you use a hardware surface, and its is a very small surface (less thena 64x64 or so pixels), then this problem may occur. I am not sure if this has been repaired in the latest SDL release or not. To temporarily fix the problem, I converted all of my surfaces to software surfaces and everything worked great.

Garak
Post Reply