 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
Thanhda

Joined: 09 Apr 2005 Posts: 331 Location: Canada
|
Posted: Sun Dec 25, 2005 10:34 am Post subject: PSP SDL Transparency |
|
|
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: | | 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... |
|
| Back to top |
|
 |
Garak
Joined: 27 Jul 2005 Posts: 46
|
Posted: Tue Jan 03, 2006 5:12 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|