forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PSP SDL Transparency

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Thanhda



Joined: 09 Apr 2005
Posts: 331
Location: Canada

PostPosted: Sun Dec 25, 2005 10:34 am    Post subject: PSP SDL Transparency Reply with quote

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
View user's profile Send private message Visit poster's website
Garak



Joined: 27 Jul 2005
Posts: 46

PostPosted: Tue Jan 03, 2006 5:12 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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