| View previous topic :: View next topic |
| Author |
Message |
Scienthsine
Joined: 20 Mar 2006 Posts: 6
|
Posted: Tue Mar 28, 2006 1:59 am Post subject: GuCopyImage src and dest overlap? |
|
|
| 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 |
|
 |
Raphael

Joined: 17 Jan 2006 Posts: 646 Location: Germany
|
Posted: Tue Mar 28, 2006 4:18 am Post subject: |
|
|
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 |
|
 |
Scienthsine
Joined: 20 Mar 2006 Posts: 6
|
Posted: Tue Mar 28, 2006 5:06 pm Post subject: |
|
|
| Thanks, and yes I seemed to have gotten myself confused when I wrote it... :p |
|
| Back to top |
|
 |
|