GuCopyImage src and dest overlap?

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

Moderators: cheriff, TyRaNiD

Post Reply
Scienthsine
Posts: 6
Joined: Mon Mar 20, 2006 11:36 pm

GuCopyImage src and dest overlap?

Post by Scienthsine »

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.
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

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.
Scienthsine
Posts: 6
Joined: Mon Mar 20, 2006 11:36 pm

Post by Scienthsine »

Thanks, and yes I seemed to have gotten myself confused when I wrote it... :p
Post Reply