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 

GuCopyImage src and dest overlap?

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



Joined: 20 Mar 2006
Posts: 6

PostPosted: Tue Mar 28, 2006 1:59 am    Post subject: GuCopyImage src and dest overlap? Reply with quote

When using GuCopyImage(), can the source and destination overlap if the destination's address is greater than the sources? In theory this should work, aslong as there are nospecial checks for an overlap, or something I'm missing. I'm not at a point where it'd be easy for me to test yet, getting there, but thought I'd ask for now, anyway.
Back to top
View user's profile Send private message
Raphael



Joined: 17 Jan 2006
Posts: 646
Location: Germany

PostPosted: Tue Mar 28, 2006 4:18 am    Post subject: Reply with quote

I think you meant "if the destination's address is lower", because else you will always overwrite source pixels which were not yet copied and thus the copy will produce false results.
And yes, it works.
Back to top
View user's profile Send private message Visit poster's website
Scienthsine



Joined: 20 Mar 2006
Posts: 6

PostPosted: Tue Mar 28, 2006 5:06 pm    Post subject: Reply with quote

Thanks, and yes I seemed to have gotten myself confused when I wrote it... :p
Back to top
View user's profile Send private message
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